summaryrefslogtreecommitdiff
path: root/net/spread/Makefile
diff options
context:
space:
mode:
authormjl <mjl@pkgsrc.org>2003-02-22 23:37:13 +0000
committermjl <mjl@pkgsrc.org>2003-02-22 23:37:13 +0000
commit11939c9bef7405e1bd5716e596e6e6647d071115 (patch)
treece2772ca0b038e5990faf81207e00cc4e89cbabf /net/spread/Makefile
parentf7e347d9611200a6e1489026451b3d33dd9eb94b (diff)
downloadpkgsrc-11939c9bef7405e1bd5716e596e6e6647d071115.tar.gz
Do not auto-fetch a FreeBSD copy of distfile, instead make fetch
interactive, as per PR/20424. Work patches and changes in PR/19782.
Diffstat (limited to 'net/spread/Makefile')
-rw-r--r--net/spread/Makefile41
1 files changed, 32 insertions, 9 deletions
diff --git a/net/spread/Makefile b/net/spread/Makefile
index 27fa1a99603..6fa6ed7ed17 100644
--- a/net/spread/Makefile
+++ b/net/spread/Makefile
@@ -1,17 +1,23 @@
-# $NetBSD: Makefile,v 1.1.1.1 2003/02/18 22:11:55 mjl Exp $
+# $NetBSD: Makefile,v 1.2 2003/02/22 23:37:13 mjl Exp $
#
DISTNAME= ${BASENAME}-src-${VER}
PKGNAME= ${BASENAME}-${VER}
CATEGORIES= net
-MASTER_SITES= http://www.roughtrade.net/distfiles/
-# Also available through manual download at
-# http://www.cnds.jhu.edu/download/download_spread.cgi
+MASTER_SITES=
-MAINTAINER= packages@netbsd.org
+MAINTAINER= marc@informatik.uni-bremen.de
HOMEPAGE= http://www.spread.org/
COMMENT= Group communication system providing a number of messaging services
+INTERACTIVE_STAGE= fetch
+
+_FETCH_MESSAGE= \
+ ${ECHO} '======================================================='; \
+ ${ECHO} 'Distfile has to be manually fetched from'; \
+ ${ECHO} ' http://www.cnds.jhu.edu/download/download_spread.cgi'; \
+ ${ECHO} '======================================================='
+
BASENAME= spread
VER= 3.17.0
WRKSRC= ${WRKDIR}/${DISTNAME}
@@ -21,21 +27,38 @@ GNU_CONFIGURE= YES
BUILD_DEPENDS+= perl-[0-9]*:../../lang/perl5:build
LDFLAGS += -lutil
+SPREAD_USER= spread
+SPREAD_GROUP= spread
+
+FILES_SUBST+= SPREAD_USER=${SPREAD_USER}
+FILES_SUBST+= SPREAD_GROUP=${SPREAD_GROUP}
+
+BUILD_DEFS+= SPREAD_USER SPREAD_GROUP
+
INCLUDEDIR= ${PREFIX}/include/spread
DOCSDIR= ${PREFIX}/share/doc/spread
EXAMPLEDIR= ${PREFIX}/share/examples/spread
+RUNDIR= /var/run/spread
-post-install:
+RCD_SCRIPTS= spread
+PKG_GROUPS= ${SPREAD_USER}
+PKG_USERS= ${SPREAD_USER}:${SPREAD_GROUP}
+CONF_FILES= ${EXAMPLEDIR}/spread.access_ip.sample ${PKG_SYSCONFBASE}/spread.access_ip
+CONF_FILES+= ${EXAMPLEDIR}/spread.conf.sample ${PKG_SYSCONFBASE}/spread.conf
+
+pre-install:
${INSTALL_DATA_DIR} ${INCLUDEDIR}
+
+post-install:
${INSTALL_DATA_DIR} ${DOCSDIR}
${INSTALL_DATA_DIR} ${EXAMPLEDIR}
- ${INSTALL_DATA} ${WRKSRC}/sp.h ${INCLUDEDIR}/sp.h
- ${INSTALL_DATA} ${WRKSRC}/sp_func.h ${INCLUDEDIR}/sp_func.h
- ${INSTALL_DATA} ${WRKSRC}/sp_events.h ${INCLUDEDIR}/sp_events.h
${INSTALL_DATA} ${WRKSRC}/sample.spread.conf ${EXAMPLEDIR}/spread.conf.sample
${INSTALL_DATA} ${WRKSRC}/sample.spread.access_ip ${EXAMPLEDIR}/spread.access_ip.sample
${INSTALL_DATA} ${WRKSRC}/Readme.txt ${DOCSDIR}/Readme.txt
${INSTALL_DATA} ${WRKSRC}/license.txt ${DOCSDIR}/LICENSE
+ ${INSTALL_DATA} ${WRKSRC}/Short_Buffer_Handling.txt ${DOCSDIR}/Short_Buffer_Handling.txt
+ ${INSTALL} -d -o ${SPREAD_USER} -g ${SPREAD_GROUP} -m 0750 ${RUNDIR}
.include "../../mk/pthread.buildlink2.mk"
+.include "../../mk/bsd.pkg.install.mk"
.include "../../mk/bsd.pkg.mk"