54a0b86543
in bsd.autotools.mk essentially makes this a no-op given that all the old variables set a USE_AUTOTOOLS_COMPAT variable, which is parsed in exactly the same way as USE_AUTOTOOLS itself. Moreover, USE_AUTOTOOLS has already been extensively tested by the GNOME team -- all GNOME 2.12.x ports use it. Preliminary documentation can be found at: http://people.FreeBSD.org/~ade/autotools.txt which is in the process of being SGMLized before introduction into the Porters Handbook. Light blue touch-paper. Run.
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# New ports collection makefile for: dancer-services
|
|
# Date Created: 14 April 2003
|
|
# Whom: Akinori MUSHA aka knu <knu@idaemons.org>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= dancer-services
|
|
PORTVERSION= 1.8.0.6.9
|
|
PORTREVISION= 2
|
|
CATEGORIES= irc
|
|
MASTER_SITES= http://source.freenode.net/~asuffield/dancer/%SUBDIR%/
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= The IRC services (nickserv, chanserv, etc.) for dancer-ircd
|
|
|
|
USE_AUTOTOOLS= automake:15:env autoconf:253:env
|
|
USE_RC_SUBR= yes
|
|
USE_REINPLACE= yes
|
|
USE_GMAKE= yes
|
|
GNU_CONFIGURE= yes
|
|
|
|
MAKE_ARGS= BINDIR=${PREFIX}/sbin \
|
|
CONFDIR=${PREFIX}/etc/dancer-services \
|
|
HELPDIR=${PREFIX}/share/dancer-services/help \
|
|
WHOAMI=root
|
|
|
|
.if !defined(PACKAGE_BUILDING) && !defined(BATCH)
|
|
IS_INTERACTIVE= yes
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} 's:@@prefix@@:${PREFIX}:g' \
|
|
${WRKSRC}/bin/services.conf \
|
|
${WRKSRC}/bin/settings.conf.in
|
|
|
|
pre-configure:
|
|
cd ${WRKSRC}; ${SETENV} ${SCRIPTS_ENV} ${SH} ./autogen.sh
|
|
|
|
pre-build:
|
|
cd ${WRKSRC}; ${MAKE} depend
|
|
|
|
post-build:
|
|
${SED} -e 's,%%PREFIX%%,${PREFIX},g' -e 's,%%RC_SUBR%%,${RC_SUBR},g' \
|
|
${FILESDIR}/dancer-services.sh > ${WRKDIR}/dancer-services.sh
|
|
|
|
pre-install:
|
|
${MKDIR} ${PREFIX}/share/dancer-services
|
|
@${SH} ${PKGINSTALL} ${PKGNAME} PRE-INSTALL
|
|
|
|
post-install:
|
|
${FIND} ${PREFIX}/share/dancer-services -type d -print0 | \
|
|
${XARGS} -0 ${CHMOD} 755
|
|
${FIND} ${PREFIX}/share/dancer-services -type f -print0 | \
|
|
${XARGS} -0 ${CHMOD} ${SHAREMODE}
|
|
${INSTALL} -d -m 700 -o ircservices -g ircservices \
|
|
/var/log/dancer-services \
|
|
/var/run/dancer-services
|
|
.for f in motd.dcc motd.global services.conf settings.conf
|
|
${INSTALL_DATA} ${WRKSRC}/bin/${f} ${PREFIX}/etc/dancer-services/${f}.sample
|
|
.endfor
|
|
.for f in glines.conf jupes.conf logon.news
|
|
${TOUCH} ${PREFIX}/etc/dancer-services/${f}.sample
|
|
if [ ! -f ${PREFIX}/etc/dancer-services/${f} ]; then \
|
|
${CP} ${PREFIX}/etc/dancer-services/${f}.sample ${PREFIX}/etc/dancer-services/${f}; \
|
|
fi
|
|
.endfor
|
|
${FIND} ${PREFIX}/etc/dancer-services -type d -print0 | \
|
|
${XARGS} -0 ${CHMOD} 700
|
|
${FIND} ${PREFIX}/etc/dancer-services -type f -print0 | \
|
|
${XARGS} -0 ${CHMOD} 600
|
|
${CHOWN} -R ircservices:ircservices ${PREFIX}/etc/dancer-services
|
|
${INSTALL_SCRIPT} ${WRKDIR}/dancer-services.sh ${PREFIX}/etc/rc.d/
|
|
${SED} -e "s,/usr/local/,${PREFIX}/,g" ${PKGMESSAGE}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
.for f in ChangeLog README
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
|
|
.endfor
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|