svn commit: r337645 - head/shells/ambit
Baptiste Daroussin
bapt at FreeBSD.org
Fri Dec 27 08:09:03 UTC 2013
Author: bapt
Date: Fri Dec 27 08:09:02 2013
New Revision: 337645
URL: http://svnweb.freebsd.org/changeset/ports/337645
Log:
Support stage
Modified:
head/shells/ambit/Makefile
head/shells/ambit/pkg-plist
Modified: head/shells/ambit/Makefile
==============================================================================
--- head/shells/ambit/Makefile Fri Dec 27 08:06:49 2013 (r337644)
+++ head/shells/ambit/Makefile Fri Dec 27 08:09:02 2013 (r337645)
@@ -16,14 +16,11 @@ LICENSE= GPLv3
RUN_DEPENDS= bash:${PORTSDIR}/shells/bash
AMBITDIR?= /var/spool/${PORTNAME}
-MAN1= ${PORTNAME}.1
-MANCOMPRESSED= yes
NO_BUILD= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PLIST_SUB= AMBITDIR=${AMBITDIR}
-NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} \
-e "s!/bin/bash!${LOCALBASE}/bin/bash!" \
@@ -32,13 +29,10 @@ post-patch:
-e "s!/var/.MyNameIs!${AMBITDIR}!" ${WRKSRC}/usr/bin/ambit
do-install:
- @${MKDIR} ${AMBITDIR}/hosts
- ${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/ambit ${PREFIX}/bin
- ${INSTALL_DATA} ${WRKSRC}/usr/lib/ambit/libambit.sh ${PREFIX}/lib
- ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}/${PORTNAME}.conf ${PREFIX}/etc/${PORTNAME}.conf.sample
- ${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/${PORTNAME}.1.gz ${MANPREFIX}/man/man1
- @if [ ! -f ${PREFIX}/etc/${PORTNAME}.conf ]; then \
- ${CP} -p ${PREFIX}/etc/${PORTNAME}.conf.sample ${PREFIX}/etc/${PORTNAME}.conf ; \
- fi
+ @${MKDIR} ${STAGEDIR}${AMBITDIR}/hosts
+ ${INSTALL_SCRIPT} ${WRKSRC}/usr/bin/ambit ${STAGEDIR}${PREFIX}/bin
+ ${INSTALL_DATA} ${WRKSRC}/usr/lib/ambit/libambit.sh ${STAGEDIR}${PREFIX}/lib
+ ${INSTALL_DATA} ${WRKSRC}/etc/${PORTNAME}/${PORTNAME}.conf ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.conf.sample
+ ${INSTALL_MAN} ${WRKSRC}/usr/share/man/man1/${PORTNAME}.1.gz ${STAGEDIR}${MANPREFIX}/man/man1
.include <bsd.port.mk>
Modified: head/shells/ambit/pkg-plist
==============================================================================
--- head/shells/ambit/pkg-plist Fri Dec 27 08:06:49 2013 (r337644)
+++ head/shells/ambit/pkg-plist Fri Dec 27 08:09:02 2013 (r337645)
@@ -1,5 +1,6 @@
bin/ambit
lib/libambit.sh
+man/man1/ambit.1.gz
@unexec if cmp -s %D/etc/ambit.conf.sample %D/etc/ambit.conf; then rm -f %D/etc/ambit.conf; fi
etc/ambit.conf.sample
@exec if [ ! -f %D/etc/ambit.conf ] ; then cp -p %D/%F %B/ambit.conf; fi
More information about the svn-ports-all
mailing list