summaryrefslogtreecommitdiff
path: root/textproc/ndtpd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'textproc/ndtpd/Makefile')
-rw-r--r--textproc/ndtpd/Makefile41
1 files changed, 24 insertions, 17 deletions
diff --git a/textproc/ndtpd/Makefile b/textproc/ndtpd/Makefile
index b8ec135d38b..97d32d16e58 100644
--- a/textproc/ndtpd/Makefile
+++ b/textproc/ndtpd/Makefile
@@ -1,6 +1,8 @@
-# $NetBSD: Makefile,v 1.6 2003/02/06 04:24:13 uebayasi Exp $
+# $NetBSD: Makefile,v 1.7 2003/04/13 01:29:42 salo Exp $
+#
DISTNAME= ndtpd-3.1.4
+PKGREVISION= 1
CATEGORIES= textproc japanese
MASTER_SITES= ftp://ftp.sra.co.jp/pub/net/ndtp/ndtpd/
@@ -8,33 +10,38 @@ MAINTAINER= uebayasi@netbsd.org
HOMEPAGE= http://www.sra.co.jp/people/m-kasahr/ndtpd/
COMMENT= Server for accessing CD-ROM books with NDTP
-USE_BUILDLINK2= yes
-USE_PKGINSTALL= yes
-USE_LIBTOOL= yes
-GNU_CONFIGURE= yes
-CONFIGURE_ARGS+=--localstatedir=${NDTPD_RUNDIR}
-CONFIGURE_ARGS+=--with-logdir=${NDTPD_LOGDIR}
-CONFIGURE_ARGS+=--with-eb
-CONFIGURE_ARGS+=--with-zlib
-MAKE_FLAGS+= INSTALL_INFO=${INSTALL_INFO}
+USE_BUILDLINK2= YES
+USE_PKGINSTALL= YES
+USE_LIBTOOL= YES
+GNU_CONFIGURE= YES
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
+CONFIGURE_ARGS+= --localstatedir=${NDTPD_RUNDIR}
+CONFIGURE_ARGS+= --with-logdir=${NDTPD_LOGDIR}
+CONFIGURE_ARGS+= --with-eb
+CONFIGURE_ARGS+= --with-zlib
+
# For INSTALL/DEINSTALL scripts.
-CONF_FILES= ${NDTPD_CONFDIR}/ndtpd.conf.sample ${NDTPD_CONFDIR}/ndtpd.conf
-RCD_SCRIPT= ndtpd.sh
+CONF_FILES= ${EGDIR}/ndtpd.conf.default ${PKG_SYSCONFDIR}/ndtpd.conf
+RCD_SCRIPTS= ndtpd
+
# Will be also used for ndtpd.sh.
FILES_SUBST+= NDTPD_RUNDIR=${NDTPD_RUNDIR}
-NDTPD_CONFDIR= ${PREFIX}/etc
+EGDIR= ${PREFIX}/share/examples/ndtpd
NDTPD_LOGDIR= ${DESTDIR}/var/log
NDTPD_RUNDIR= ${DESTDIR}/var/run
# XXX NDTPD actually uses ${NDTPD_RUNDIR}/ndtpd.
-post-build:
- @${SED} ${FILES_SUBST_SED} ${FILESDIR}/ndtpd.sh >${WRKDIR}/ndtpd.sh
-
post-install:
- @${INSTALL_SCRIPT} ${WRKDIR}/ndtpd.sh ${PREFIX}/etc/rc.d/ndtpd.sh
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/ndtpd.conf.sample \
+ ${EGDIR}/ndtpd.conf.default
.include "../../devel/gettext-lib/buildlink2.mk"
.include "../../textproc/eb/buildlink2.mk"
+
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"