buildlink2.mk files back into the main trunk. This provides sufficient buildlink2 infrastructure to start merging other packages from the buildlink2 branch that have already been converted to use the buildlink2 framework.
56 lines
1.5 KiB
Makefile
56 lines
1.5 KiB
Makefile
# $NetBSD: Makefile,v 1.7 2002/08/25 18:39:35 jlam Exp $
|
|
|
|
DISTNAME= openslp-1.0.7
|
|
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_BUILDLINK2= YES
|
|
GNU_CONFIGURE= YES
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --localstatedir=/var
|
|
|
|
USE_LIBTOOL= YES
|
|
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
|
|
|
|
DOCDIR= ${PREFIX}/share/doc/${PKGBASE}
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
HTMLDIR= ${PREFIX}/share/doc/html/${PKGBASE}
|
|
|
|
CONFS= slp.conf slp.reg slp.spi
|
|
CONF_FILES= # empty
|
|
.for FILE in ${CONFS}
|
|
CONF_FILES+= ${EGDIR}/${FILE} ${PKG_SYSCONFDIR}/${FILE}
|
|
.endfor
|
|
RCD_SCRIPTS= slpd
|
|
|
|
post-extract:
|
|
${FIND} ${WRKSRC} -name "CVS" -print | ${XARGS} ${RM} -rf
|
|
|
|
pre-install:
|
|
@for script in ${RCD_SCRIPTS}; do \
|
|
${SED} ${FILES_SUBST_SED} ${FILESDIR}/$${script}.sh \
|
|
> ${WRKDIR}/$${script}; \
|
|
done
|
|
|
|
post-install:
|
|
for script in ${RCD_SCRIPTS}; do \
|
|
${INSTALL_SCRIPT} ${WRKDIR}/$${script} \
|
|
${PREFIX}/etc/rc.d/$${script}; \
|
|
done
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
${INSTALL_DATA_DIR} ${HTMLDIR}
|
|
cd ${WRKSRC}/etc; for file in ${CONFS}; do \
|
|
${INSTALL_DATA} $${file} ${EGDIR}/$${file}; \
|
|
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}
|
|
|
|
.include "../../mk/bsd.pkg.install.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|