summaryrefslogtreecommitdiff
path: root/net/autonet
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-05-06 14:54:51 +0000
committerjperkin <jperkin@pkgsrc.org>2014-05-06 14:54:51 +0000
commit29c6202660690bc584f6c16d7cf0ff98688b0ab1 (patch)
tree82268909ec6aad7693077b1dde1f0d823bb2c48b /net/autonet
parent15826d701ef0ae2b9d580b7addc50602872fc40b (diff)
downloadpkgsrc-29c6202660690bc584f6c16d7cf0ff98688b0ab1.tar.gz
Fix INIT_SYSTEM handling.
Diffstat (limited to 'net/autonet')
-rw-r--r--net/autonet/Makefile12
-rw-r--r--net/autonet/PLIST3
-rw-r--r--net/autonet/distinfo4
-rw-r--r--net/autonet/patches/patch-aa8
4 files changed, 21 insertions, 6 deletions
diff --git a/net/autonet/Makefile b/net/autonet/Makefile
index a4ecac1984e..67a039c85c3 100644
--- a/net/autonet/Makefile
+++ b/net/autonet/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2012/10/23 17:18:10 asau Exp $
+# $NetBSD: Makefile,v 1.9 2014/05/06 14:54:51 jperkin Exp $
DISTNAME= autonet-0.22
CATEGORIES= net
@@ -13,4 +13,14 @@ ONLY_FOR_PLATFORM= NetBSD-*-*
USE_LANGUAGES= # empty
NO_CONFIGURE= yes
+.include "../../mk/bsd.prefs.mk"
+
+MAKE_ENV+= INIT_SYSTEM="${INIT_SYSTEM}"
+
+PLIST_VARS+= rcd
+
+.if ${INIT_SYSTEM} == "rc.d"
+PLIST.rcd= yes
+.endif
+
.include "../../mk/bsd.pkg.mk"
diff --git a/net/autonet/PLIST b/net/autonet/PLIST
index 546beca4f2b..c24e27b0ca1 100644
--- a/net/autonet/PLIST
+++ b/net/autonet/PLIST
@@ -1,5 +1,6 @@
-@comment $NetBSD: PLIST,v 1.4 2014/03/11 14:05:06 jperkin Exp $
+@comment $NetBSD: PLIST,v 1.5 2014/05/06 14:54:51 jperkin Exp $
man/man8/autonet.8
sbin/autonet
share/examples/autonet/autonet.local
share/examples/autonet/lid_switch
+${PLIST.rcd}share/examples/rc.d/autonet
diff --git a/net/autonet/distinfo b/net/autonet/distinfo
index 38acce20780..748216a1622 100644
--- a/net/autonet/distinfo
+++ b/net/autonet/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.7 2008/06/20 01:09:29 joerg Exp $
+$NetBSD: distinfo,v 1.8 2014/05/06 14:54:51 jperkin Exp $
SHA1 (autonet-0.22.tbz) = 5ec1271d43d3f276c6dabcaaad088e388de11ea2
RMD160 (autonet-0.22.tbz) = 461522c3f44b2944186708417720ee3e180be7c1
Size (autonet-0.22.tbz) = 5821 bytes
-SHA1 (patch-aa) = 0023c7a09e6ede0a99baf52ecdaf29e6d7599b43
+SHA1 (patch-aa) = 2e704ea83939e70434540bc041a80fdb9731bde7
diff --git a/net/autonet/patches/patch-aa b/net/autonet/patches/patch-aa
index 94dc4405d1b..16c193c6a20 100644
--- a/net/autonet/patches/patch-aa
+++ b/net/autonet/patches/patch-aa
@@ -1,8 +1,10 @@
-$NetBSD: patch-aa,v 1.1 2008/06/20 01:10:02 joerg Exp $
+$NetBSD: patch-aa,v 1.2 2014/05/06 14:54:51 jperkin Exp $
+
+Support DESTDIR, handle INIT_SYSTEM.
--- Makefile.orig 2008-06-19 13:38:51.000000000 +0000
+++ Makefile
-@@ -31,15 +31,15 @@ clean:
+@@ -31,15 +31,17 @@
rm -f index.html ${GENFILES} ${PKGNAME}-*.tbz *~~
install: ${PKGNAME}.${MANSECTION}
@@ -23,7 +25,9 @@ $NetBSD: patch-aa,v 1.1 2008/06/20 01:10:02 joerg Exp $
+ ${INSTALL_SCRIPT} autonet.local ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_SCRIPT} lid_switch ${DESTDIR}${EXAMPLEDIR}
+ ${INSTALL_DIR} ${DESTDIR}${RCDIR}
++.if ${INIT_SYSTEM} == "rc.d"
+ ${INSTALL_SCRIPT} autonet-rc.d ${DESTDIR}${RCDIR}/autonet
++.endif
# GENFILES