37 lines
1,005 B
Makefile
37 lines
1,005 B
Makefile
# Created by: Jason Bacon <jwbacon@tds.net>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= desktop-installer
|
|
PORTVERSION= 0.4.5
|
|
CATEGORIES= sysutils
|
|
MASTER_SITES= http://acadix.biz/Ports/distfiles/ \
|
|
http://personalpages.tds.net/~jwbacon/Ports/distfiles/
|
|
|
|
MAINTAINER= jwbacon@tds.net
|
|
COMMENT= Quickly configure a FreeBSD desktop system
|
|
|
|
RUN_DEPENDS= auto-admin>=0.3.2:${PORTSDIR}/sysutils/auto-admin
|
|
|
|
NO_BUILD= yes
|
|
|
|
MAN1= ${PORTNAME}.1
|
|
|
|
NO_STAGE= yes
|
|
do-install:
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${PREFIX}/sbin
|
|
${INSTALL_MAN} ${WRKSRC}/Doc/${PORTNAME}.man \
|
|
${PREFIX}/man/man1/${PORTNAME}.1
|
|
${MKDIR} ${DATADIR}
|
|
${CP} -r ${WRKSRC}/Data/* ${DATADIR}
|
|
${MKDIR} ${DATADIR}/Scripts
|
|
${INSTALL_SCRIPT} ${WRKSRC}/Scripts/* ${DATADIR}/Scripts
|
|
|
|
.include <bsd.port.pre.mk>
|
|
post-patch:
|
|
${REINPLACE_CMD} 's|/etc/mtree|$${PORTSDIR=/usr/ports}/Templates|' \
|
|
${WRKSRC}/${PORTNAME}
|
|
${REINPLACE_CMD} \
|
|
's|DATADIR=Data|DATADIR=${PREFIX}/share/desktop-installer|g' \
|
|
${WRKSRC}/desktop-installer
|
|
|
|
.include <bsd.port.post.mk>
|