- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
51 lines
1.5 KiB
Makefile
51 lines
1.5 KiB
Makefile
# Created by: Steve Atwell
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= slack
|
|
PORTVERSION= 0.15.2
|
|
PORTREVISION= 2
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= GOOGLE_CODE \
|
|
http://www.sundell.net/~alan/projects/slack/
|
|
|
|
MAINTAINER= satwell@disjoint.net
|
|
COMMENT= Configuration management system designed to appeal to lazy admins
|
|
|
|
RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync
|
|
|
|
USES= perl5 gmake
|
|
|
|
PORTDOCS= ChangeLog COPYING CREDITS FAQ GPL README TODO \
|
|
fixfiles-and-dirs.txt slack-intro
|
|
MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} \
|
|
libexecdir=${PREFIX}/libexec mandir=${PREFIX}/man \
|
|
localstatedir=/var
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
pre-build:
|
|
${REINPLACE_CMD} -e '1s,^#!.*perl,#!${PERL},' ${WRKSRC}/test/gen_config_file
|
|
|
|
post-build:
|
|
@for f in ${WRKSRC}/src/build/*; do \
|
|
${REINPLACE_CMD} -e '1s,^#!.*perl,#!${PERL},' $$f; \
|
|
done
|
|
|
|
post-install:
|
|
@${INSTALL_DATA} ${WRKSRC}/src/build/slack.conf ${STAGEDIR}${PREFIX}/etc/slack.conf.sample
|
|
.if ${PORT_OPTIONS:MDOCS}
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/CREDITS ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/FAQ ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/GPL ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/fixfiles-and-dirs.txt ${STAGEDIR}${DOCSDIR}
|
|
@${INSTALL_DATA} ${WRKSRC}/doc/slack-intro ${STAGEDIR}${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|