forked from Lainports/freebsd-ports
- 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
35 lines
1.1 KiB
Makefile
35 lines
1.1 KiB
Makefile
# Created by: <gurkan@phys.ethz.ch>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= dphys-config
|
|
PORTVERSION= 20100216
|
|
CATEGORIES= misc
|
|
MASTER_SITES= DEBIAN_POOL
|
|
DISTNAME= ${PORTNAME}_${PORTVERSION}.orig
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= Tool to distribute config files
|
|
|
|
RUN_DEPENDS= wget:${PORTSDIR}/ftp/wget
|
|
|
|
NO_BUILD= yes
|
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/etc|${PREFIX}/etc|' ${WRKSRC}/${PORTNAME}
|
|
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
|
|
${INSTALL_MAN} ${WRKSRC}/dphys-config.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin
|
|
.for f in dphys-config.example cron.d.example init.d.example
|
|
${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}${EXAMPLESDIR}
|
|
.endfor
|
|
${INSTALL_DATA} ${WRKSRC}/site.example/${PORTNAME}* \
|
|
${STAGEDIR}${EXAMPLESDIR}/site.example/
|
|
${INSTALL_DATA} ${WRKSRC}/site.example/local/sbin/${PORTNAME}-* \
|
|
${STAGEDIR}${EXAMPLESDIR}/site.example/local/sbin/
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.example ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.sample
|
|
|
|
.include <bsd.port.mk>
|