summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2014-05-11 01:26:30 +0000
committeramdmi3 <amdmi3@FreeBSD.org>2014-05-11 01:26:30 +0000
commit98fbd70b32204804ca8f28dab8005860e0caf536 (patch)
treec3239fbf32368dd9726648a5b481da32cc0bf2f9
parentd8982f23368a4522633b6d372096c476c844d81a (diff)
downloadFreeBSD-ports-98fbd70b32204804ca8f28dab8005860e0caf536.zip
FreeBSD-ports-98fbd70b32204804ca8f28dab8005860e0caf536.tar.gz
- Support staging
- Convert USE_GMAKE to USES - Use new LIB_DEPENDS syntax - Switch to USES=libtool
-rw-r--r--net/dictd/Makefile16
-rw-r--r--net/dictd/pkg-plist2
2 files changed, 6 insertions, 12 deletions
diff --git a/net/dictd/Makefile b/net/dictd/Makefile
index 9893411..61c6fec 100644
--- a/net/dictd/Makefile
+++ b/net/dictd/Makefile
@@ -9,14 +9,11 @@ MASTER_SITES= SF/dict/${PORTNAME}/${PORTNAME}-${PORTVERSION}
MAINTAINER?= clsung@FreeBSD.org
COMMENT= Dict protocol (RFC 2229) server
-LIB_DEPENDS= maa.3:${PORTSDIR}/devel/libmaa
-
-MAN1= dictzip.1
-MAN8= dictd.8
+LIB_DEPENDS= libmaa.so:${PORTSDIR}/devel/libmaa
USE_RC_SUBR= ${PORTNAME}
-USES= bison
-USE_AUTOTOOLS= libtool
+USES= bison libtool gmake
+USE_AUTOTOOLS= libtoolize
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-etcdir=${PREFIX}/etc --with-cflags="${CFLAGS}" \
--without-local-zlib
@@ -26,12 +23,9 @@ LDFLAGS+= -L${LOCALBASE}/lib
SUB_FILES+= dictd.conf pkg-message
SUB_LIST+= PORTSDIR=${PORTSDIR}
-USE_GMAKE= yes
-
ALL_TARGET= dictd dictzip
INSTALL_TARGET= install.dictd install.dictzip
-NO_STAGE= yes
post-patch:
.for i in Makefile.in dict.1.in dictd.8.in
@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/$i
@@ -39,8 +33,6 @@ post-patch:
@${REINPLACE_CMD} -e "s|\([\ \t(]\)T_USER|\1T_USERNAME|g" ${WRKSRC}/*.[chly]
post-install:
- @${CP} ${WRKDIR}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
- @[ -f ${PREFIX}/etc/${PORTNAME}.conf ] || ${CP} ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf
- @${CAT} ${PKGMESSAGE}
+ @${CP} ${WRKDIR}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
.include <bsd.port.mk>
diff --git a/net/dictd/pkg-plist b/net/dictd/pkg-plist
index 1a8eee2..baaf440 100644
--- a/net/dictd/pkg-plist
+++ b/net/dictd/pkg-plist
@@ -1,4 +1,6 @@
bin/dictzip
+man/man1/dictzip.1.gz
+man/man8/dictd.8.gz
sbin/dictd
@unexec if cmp -s %D/etc/dictd.conf %D/etc/dictd.conf.sample; then rm -f %D/etc/dictd.conf; fi
etc/dictd.conf.sample
OpenPOWER on IntegriCloud