46 lines
1.4 KiB
Makefile
46 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.2 2006/02/05 23:10:22 joerg Exp $
|
|
|
|
DISTNAME= aiccu_2005.01.31
|
|
PKGNAME= ${DISTNAME:S/_/-/:S/.//g}
|
|
PKGREVISION= 1
|
|
CATEGORIES= net
|
|
MASTER_SITES= http://www.sixxs.net/archive/sixxs/aiccu/unix/
|
|
|
|
MAINTAINER= ghen@NetBSD.org
|
|
COMMENT= Automatic IPv6 Connectivity Client Utility
|
|
HOMEPAGE= http://www.sixxs.net/tools/aiccu/
|
|
|
|
BUILD_DIRS= unix-console
|
|
|
|
USE_TOOLS+= gmake
|
|
|
|
SUBST_CLASSES+= sysconfdir
|
|
SUBST_STAGE.sysconfdir= post-patch
|
|
SUBST_FILES.sysconfdir= common/aiccu.h
|
|
SUBST_SED.sysconfdir= -e 's,/etc/aiccu.conf,${PKG_SYSCONFDIR}/aiccu.conf,'
|
|
|
|
USE_PKGINSTALL= yes
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/aiccu
|
|
DOCDIR= ${PREFIX}/share/doc/aiccu
|
|
CONF_FILES= ${EXAMPLESDIR}/aiccu.conf ${PKG_SYSCONFDIR}/aiccu.conf
|
|
CONF_FILES_MODE= 0600
|
|
|
|
RCD_SCRIPTS= aiccu
|
|
|
|
# the distfile untars as ${WRKDIR}/aiccu/ but this would conflict with the
|
|
# rc.d script that gets copied to the same name ${WRKDIR}/${RCD_SCRIPTS}
|
|
post-extract:
|
|
${MV} ${WRKDIR}/aiccu ${WRKDIR}/${DISTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/unix-console/aiccu ${PREFIX}/sbin/
|
|
${INSTALL_MAN} ${WRKSRC}/doc/aiccu.1 ${PREFIX}/${PKGMANDIR}/man1/
|
|
${INSTALL_DATA_DIR} ${EXAMPLESDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/aiccu.conf ${EXAMPLESDIR}/
|
|
${INSTALL_DATA_DIR} ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/README ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/LICENSE ${DOCDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/HOWTO ${DOCDIR}
|
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|