blob: 9f8ea26eb1c38df150a450c2df04c1492db34232 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# $NetBSD: Makefile,v 1.2 2001/08/18 03:34:39 jlam Exp $
DISTNAME= openslp-1.0.1
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=openslp/}
MAINTAINER= jlam@netbsd.org
HOMEPAGE= http://www.openslp.org/
COMMENT= Open-source implementation of the Service Location Protocol
USE_BUILDLINK_ONLY= # defined
GNU_CONFIGURE= # defined
CONFIGURE_ARGS+= --sysconfdir=/etc
CONFIGURE_ARGS+= --localstatedir=/var
USE_LIBTOOL= # defined
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
DEINSTALL_FILE= ${WRKDIR}/DEINSTALL
INSTALL_FILE= ${WRKDIR}/INSTALL
FILES_SUBST= PREFIX=${PREFIX}
FILES_SUBST+= CAT=${CAT:Q}
FILES_SUBST+= CHMOD=${CHMOD:Q}
FILES_SUBST+= CMP=${CMP:Q}
FILES_SUBST+= CP=${CP:Q}
FILES_SUBST+= ECHO=${ECHO:Q}
FILES_SUBST+= MKDIR=${MKDIR:Q}
FILES_SUBST+= RM=${RM:Q}
FILES_SUBST+= RMDIR=${RMDIR:Q}
FILES_SUBST+= TRUE=${TRUE:Q}
FILES_SUBST_SED= ${FILES_SUBST:S/=/@!/:S/$/!g/:S/^/ -e s!@/}
DOCDIR= ${PREFIX}/share/doc/openslp
EGDIR= ${PREFIX}/share/examples/openslp
HTMLDIR= ${PREFIX}/share/doc/html/openslp
post-extract:
${FIND} ${WRKSRC}/doc -name "CVS" -print | ${XARGS} ${RM} -rf
pre-install:
${SED} ${FILES_SUBST_SED} ${FILESDIR}/slpd.sh > ${WRKDIR}/slpd.sh
${SED} ${FILES_SUBST_SED} ${PKGDIR}/DEINSTALL > ${DEINSTALL_FILE}
${SED} ${FILES_SUBST_SED} ${PKGDIR}/INSTALL > ${INSTALL_FILE}
post-install:
${INSTALL_SCRIPT} ${WRKDIR}/slpd.sh ${PREFIX}/etc/rc.d/slpd
${INSTALL_DATA_DIR} ${DOCDIR} ${EGDIR} ${HTMLDIR}
cd ${WRKSRC}/etc; for file in slp.conf slp.reg slp.spi; do \
${INSTALL_DATA} $${file} ${EGDIR}; \
done
cd ${WRKSRC}/doc; ${CP} -r rfc/* ${DOCDIR}
cd ${WRKSRC}/doc; ${CP} -r html/* ${HTMLDIR}
${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCDIR} ${HTMLDIR}
${CHMOD} -R a-w ${DOCDIR} ${HTMLDIR}
PKG_PREFIX=${PREFIX} ${SH} ${INSTALL_FILE} ${PKGNAME} POST-INSTALL
.include "../../mk/bsd.pkg.mk"
|