2013-04-19 13:46:48 +02:00
|
|
|
# Created by: Jason Bacon <jwbacon@tds.net>
|
2010-01-31 02:49:51 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= desktop-installer
|
2013-11-27 16:17:42 +01:00
|
|
|
PORTVERSION= 0.4.6
|
2010-01-31 02:49:51 +01:00
|
|
|
CATEGORIES= sysutils
|
2012-07-18 22:26:20 +02:00
|
|
|
MASTER_SITES= http://acadix.biz/Ports/distfiles/ \
|
|
|
|
http://personalpages.tds.net/~jwbacon/Ports/distfiles/
|
2010-01-31 02:49:51 +01:00
|
|
|
|
|
|
|
MAINTAINER= jwbacon@tds.net
|
|
|
|
COMMENT= Quickly configure a FreeBSD desktop system
|
|
|
|
|
2013-11-27 16:17:42 +01:00
|
|
|
LICENSE= BSD
|
2012-03-25 22:09:25 +02:00
|
|
|
|
2013-11-27 16:17:42 +01:00
|
|
|
RUN_DEPENDS= auto-admin>=0.3.3:${PORTSDIR}/sysutils/auto-admin
|
|
|
|
|
2014-07-29 23:25:30 +02:00
|
|
|
USES= tar:xz
|
2010-01-31 02:49:51 +01:00
|
|
|
|
2013-11-27 16:17:42 +01:00
|
|
|
NO_BUILD= yes
|
2010-01-31 02:49:51 +01:00
|
|
|
|
|
|
|
do-install:
|
2013-11-27 16:17:42 +01:00
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin
|
2010-06-09 18:52:41 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/Doc/${PORTNAME}.man \
|
2013-11-27 16:17:42 +01:00
|
|
|
${STAGEDIR}${PREFIX}/man/man1/${PORTNAME}.1
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}
|
|
|
|
${CP} -r ${WRKSRC}/Data/* ${STAGEDIR}${DATADIR}
|
|
|
|
${MKDIR} ${STAGEDIR}${DATADIR}/Scripts
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Scripts/* ${STAGEDIR}${DATADIR}/Scripts
|
2010-01-31 02:49:51 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
post-patch:
|
|
|
|
${REINPLACE_CMD} 's|/etc/mtree|$${PORTSDIR=/usr/ports}/Templates|' \
|
|
|
|
${WRKSRC}/${PORTNAME}
|
|
|
|
${REINPLACE_CMD} \
|
2013-11-27 16:17:42 +01:00
|
|
|
's|DATADIR=Data|DATADIR=${STAGEDIR}${PREFIX}/share/desktop-installer|g' \
|
2010-01-31 02:49:51 +01:00
|
|
|
${WRKSRC}/desktop-installer
|
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|