pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/wistumbler2 - Fix directory permissions



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6d333c77f8cf
branches:  trunk
changeset: 482612:6d333c77f8cf
user:      adrianp <adrianp%pkgsrc.org@localhost>
date:      Sat Oct 30 15:24:02 2004 +0000

description:
- Fix directory permissions
- Add CONF_FILES directive for installed .conf
- Fix default path of wistumbler2.conf

diffstat:

 net/wistumbler2/Makefile |  16 +++++++++++++++-
 net/wistumbler2/PLIST    |   4 +++-
 2 files changed, 18 insertions(+), 2 deletions(-)

diffs (54 lines):

diff -r ec1b4eca248e -r 6d333c77f8cf net/wistumbler2/Makefile
--- a/net/wistumbler2/Makefile  Sat Oct 30 15:07:01 2004 +0000
+++ b/net/wistumbler2/Makefile  Sat Oct 30 15:24:02 2004 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.7 2004/10/20 22:17:31 xtraeme Exp $
+# $NetBSD: Makefile,v 1.8 2004/10/30 15:24:02 adrianp Exp $
 
 DISTNAME=      wistumbler2.00-pre9
 PKGNAME=       ${DISTNAME:S/wistumbler/wistumbler-/}
@@ -12,6 +12,7 @@
 USE_BUILDLINK3=        YES
 HAS_CONFIGURE= YES
 MANCOMPRESSED= YES
+USE_PKGINSTALL=        YES
 CONFIGURE_ENV+=        PREFIX=${PREFIX}
 
 NOT_FOR_PLATFORM=      NetBSD-[01].[012345]*-*
@@ -21,6 +22,15 @@
 
 BUILD_DEFS+=           WISTUMBLER2_USES_GTK
 
+CONF_FILES=    ${PREFIX}/share/wistumber2/wistumber2.conf \
+               ${PKG_SYSCONFDIR}/wistumber2.conf
+
+SUBST_CLASSES+=                conf
+SUBST_STAGE.conf=      post-patch
+SUBST_FILES.conf=      src/userconf.c 
+SUBST_SED.conf=                -e "s|/etc|${PKG_SYSCONFDIR}|g"
+SUBST_MESSAGE.conf=    "Fixing configuration files."
+
 .include "../../mk/bsd.prefs.mk"
 
 .if !empty(WISTUMBLER2_USES_GTK:M[Yy][Ee][Ss])
@@ -30,6 +40,10 @@
 CONFIGURE_ENV+=                USE_GTK=0
 .endif
 
+post-extract:
+       @${CHMOD} ${PKGDIRMODE} ${WRKSRC}/doc
+       @${CHMOD} ${PKGDIRMODE} ${WRKSRC}/img
+
 .include "../../net/libpcap/buildlink3.mk"
 .include "../../mk/pthread.buildlink3.mk"
 .include "../../mk/bsd.pkg.mk"
diff -r ec1b4eca248e -r 6d333c77f8cf net/wistumbler2/PLIST
--- a/net/wistumbler2/PLIST     Sat Oct 30 15:07:01 2004 +0000
+++ b/net/wistumbler2/PLIST     Sat Oct 30 15:24:02 2004 +0000
@@ -1,3 +1,5 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2003/12/03 19:11:02 xtraeme Exp $
+@comment $NetBSD: PLIST,v 1.2 2004/10/30 15:24:02 adrianp Exp $
 bin/wistumbler2
 man/man1/wistumbler2.1
+share/examples/wistumbler2/wistumbler2.conf
+@dirrm share/examples/wistumbler2



Home | Main Index | Thread Index | Old Index