pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/ettercap-NG Add user-destdir support, set LICENSE=...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/bc93f3322923
branches:  trunk
changeset: 568253:bc93f3322923
user:      obache <obache%pkgsrc.org@localhost>
date:      Wed Dec 09 08:04:32 2009 +0000

description:
Add user-destdir support, set LICENSE=gnu-gpl-v2, and exactly set USE_NCURSES=yes.

diffstat:

 net/ettercap-NG/Makefile |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (47 lines):

diff -r bff836441be9 -r bc93f3322923 net/ettercap-NG/Makefile
--- a/net/ettercap-NG/Makefile  Wed Dec 09 07:39:30 2009 +0000
+++ b/net/ettercap-NG/Makefile  Wed Dec 09 08:04:32 2009 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2009/07/17 18:00:20 adrianp Exp $
+# $NetBSD: Makefile,v 1.10 2009/12/09 08:04:32 obache Exp $
 
 DISTNAME=      ettercap-NG-0.7.3
 PKGREVISION=   2
@@ -8,7 +8,9 @@
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://ettercap.sourceforge.net/
 COMMENT=       Multipurpose sniffer/interceptor/logger for switched LAN
+LICENSE=       gnu-gpl-v2
 
+PKG_DESTDIR_SUPPORT=   user-destdir
 CONFLICTS=     ettercap-[0-9]*
 
 BUILDLINK_API_DEPENDS.libpcap+=        libpcap>=0.8.1
@@ -16,7 +18,7 @@
 GNU_CONFIGURE=         YES
 PTHREAD_OPTS+=         require
 USE_LIBTOOL=           YES
-USE_NCURSES=           # ncurses.h menu.h panel.h form.h
+USE_NCURSES=           YES # ncurses.h menu.h panel.h form.h
 USE_OLD_DES_API=       YES
 CPPFLAGS+=             -L${BUILDLINK_PREFIX.libnet11}/lib/libnet11
 
@@ -44,6 +46,8 @@
 CONF_FILES=    ${PREFIX}/share/examples/ettercap-NG/etter.conf \
                ${PKG_SYSCONFDIR}/etter.conf
 
+INSTALLATION_DIRS+=     share/examples/ettercap-NG
+
 .include "../../security/openssl/buildlink3.mk"
 .include "../../devel/libnet11/buildlink3.mk"
 .include "../../devel/libltdl/buildlink3.mk"
@@ -53,8 +57,7 @@
 .include "../../mk/pthread.buildlink3.mk"
 
 post-install:
-       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ettercap-NG
        ${INSTALL_DATA} ${WRKSRC}/share/etter.conf \
-               ${PREFIX}/share/examples/ettercap-NG
+               ${DESTDIR}${PREFIX}/share/examples/ettercap-NG
 
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index