summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Väth <martin@mvath.de>2021-04-18 18:24:41 +0200
committerMartin Väth <martin@mvath.de>2021-04-18 18:24:41 +0200
commitedb4a36dd5cff9f8cbaa75b962fd4fa1a220f930 (patch)
treeadce234f7fd35b2605147509fabc00c75c576445
parentapp-admin/sudox: Version bump (diff)
downloadmv-edb4a36dd5cff9f8cbaa75b962fd4fa1a220f930.tar.gz
mv-edb4a36dd5cff9f8cbaa75b962fd4fa1a220f930.tar.bz2
mv-edb4a36dd5cff9f8cbaa75b962fd4fa1a220f930.zip
net-misc/openrdate: avoid sysctl
Signed-off-by: Martin Väth <martin@mvath.de>
-rw-r--r--net-misc/openrdate/openrdate-1.2.ebuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/net-misc/openrdate/openrdate-1.2.ebuild b/net-misc/openrdate/openrdate-1.2.ebuild
index 0b5c9ffb..ce40e469 100644
--- a/net-misc/openrdate/openrdate-1.2.ebuild
+++ b/net-misc/openrdate/openrdate-1.2.ebuild
@@ -27,6 +27,11 @@ src_prepare() {
mv docs/{,open}rdate.8
}
+src_configure() {
+ export CFLAGS="${CFLAGS-} -D__NO_SYSCTL__"
+ default
+}
+
src_install(){
emake -j1 DESTDIR="${D}" install || die "make install failed"
newinitd "${FILESDIR}"/openrdate-initd openrdate