pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/autonet Fix INIT_SYSTEM handling.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/55c3246e80a3
branches:  trunk
changeset: 634019:55c3246e80a3
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue May 06 14:54:51 2014 +0000

description:
Fix INIT_SYSTEM handling.

diffstat:

 net/autonet/Makefile         |  12 +++++++++++-
 net/autonet/PLIST            |   3 ++-
 net/autonet/distinfo         |   4 ++--
 net/autonet/patches/patch-aa |   8 ++++++--
 4 files changed, 21 insertions(+), 6 deletions(-)

diffs (73 lines):

diff -r c0fbc29334a9 -r 55c3246e80a3 net/autonet/Makefile
--- a/net/autonet/Makefile      Tue May 06 14:48:06 2014 +0000
+++ b/net/autonet/Makefile      Tue May 06 14:54:51 2014 +0000
@@ -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 @@
 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 -r c0fbc29334a9 -r 55c3246e80a3 net/autonet/PLIST
--- a/net/autonet/PLIST Tue May 06 14:48:06 2014 +0000
+++ b/net/autonet/PLIST Tue May 06 14:54:51 2014 +0000
@@ -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 -r c0fbc29334a9 -r 55c3246e80a3 net/autonet/distinfo
--- a/net/autonet/distinfo      Tue May 06 14:48:06 2014 +0000
+++ b/net/autonet/distinfo      Tue May 06 14:54:51 2014 +0000
@@ -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 -r c0fbc29334a9 -r 55c3246e80a3 net/autonet/patches/patch-aa
--- a/net/autonet/patches/patch-aa      Tue May 06 14:48:06 2014 +0000
+++ b/net/autonet/patches/patch-aa      Tue May 06 14:54:51 2014 +0000
@@ -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 @@
 +      ${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
  



Home | Main Index | Thread Index | Old Index