aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdadminscripts/Makefile
diff options
context:
space:
mode:
authorJohn Marino <marino@FreeBSD.org>2014-08-25 08:58:15 +0000
committerJohn Marino <marino@FreeBSD.org>2014-08-25 08:58:15 +0000
commitfcb4da4e07749d093aa2ebb25fee0ed71af46103 (patch)
tree2e73063027b8e7a787875987e1d722791555f1d7 /sysutils/bsdadminscripts/Makefile
parent71555846eeb49221a56db297b3171b40c53fb363 (diff)
downloadports-fcb4da4e07749d093aa2ebb25fee0ed71af46103.tar.gz
ports-fcb4da4e07749d093aa2ebb25fee0ed71af46103.zip
Notes
Diffstat (limited to 'sysutils/bsdadminscripts/Makefile')
-rw-r--r--sysutils/bsdadminscripts/Makefile66
1 files changed, 36 insertions, 30 deletions
diff --git a/sysutils/bsdadminscripts/Makefile b/sysutils/bsdadminscripts/Makefile
index 04b682c07f61..231b7f2fb9b7 100644
--- a/sysutils/bsdadminscripts/Makefile
+++ b/sysutils/bsdadminscripts/Makefile
@@ -3,50 +3,56 @@
PORTNAME= bsdadminscripts
PORTVERSION= 6.1.1
-PORTREVISION= 4
+PORTREVISION= 5
CATEGORIES= sysutils ports-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= cpm@fbsd.es
COMMENT= Collection of administration scripts
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
-NO_BUILD= yes
-MANCOMPRESSED= yes
+LICENSE= BSD2CLAUSE
-NO_STAGE= yes
+NO_BUILD= yes
+PORTDOCS= ABOUT CHANGES INSTALL NOTES THANKS
OPTIONS_DEFINE= DOCS
.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MDOCS}
-MAN1= bsdadminscripts.1 \
- buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \
- distviper.1 \
- pkg_libchk.1 \
- pkg_upgrade.1 \
- pkg_validate.1 \
- portconfig.1 \
- rcstart.1 \
- uma.1
-
-RC_SCRIPTS= stop restart status onestart onestop onerestart onestatus
-PORT_SCRIPTS= build clean fetch package \
- config-recursive fetch-recursive
-MLINKS+= ${RC_SCRIPTS:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} \
- ${PORT_SCRIPTS:S,^,port,:S,$,.1,:S,^,portconfig.1 ,}
-.else
+.if ! ${PORT_OPTIONS:MDOCS}
EVALDOCS= -nodoc
.endif
-plist: patch
- @cd ${WRKSRC}; ./plist.sh -nodoc > ${PLIST}
- @${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}
-
do-install:
- @cd ${WRKSRC}; ./install.sh \
- -prefix=${PREFIX} -ports=${PORTSDIR} -distdir=${DISTDIR} \
- -datadir=${DATADIR} ${EVALDOCS}
+ cd ${WRKSRC}/src && ${SH} install.sh \
+ -prefix=${STAGEDIR}${PREFIX} \
+ -ports=${STAGEDIR}${PORTSDIR} \
+ -distdir=${STAGEDIR}${DISTDIR} \
+ -datadir=${STAGEDIR}${DATADIR} \
+ ${EVALDOCS}
+.for n in pkg_libchk pkg_upgrade uma
+ ${INSTALL_DATA} ${WRKSRC}/src/${n} ${STAGEDIR}${PREFIX}/sbin
+.endfor
+ ${INSTALL_DATA} ${WRKSRC}/src/buildflags.mk ${STAGEDIR}${DATADIR}
+ ${INSTALL_DATA} ${WRKSRC}/src/buildflags.conf.sample \
+ ${STAGEDIR}${PREFIX}/etc
+ ${INSTALL_DATA} ${WRKSRC}/src/uma.conf.sample ${STAGEDIR}${PREFIX}/etc
+.for f in bsdadminscripts buildflags.awk buildflags.conf buildflags.mk \
+ distviper pkg_libchk pkg_upgrade pkg_validate portconfig rcstart uma
+ ${INSTALL_MAN} ${WRKSRC}/src/${f}.1 ${STAGEDIR}${MAN1PREFIX}/man/man1
+.endfor
+
+post-install:
+ ${MKDIR} ${STAGEDIR}${ETCDIR}
+ ${MV} ${STAGEDIR}${PREFIX}/etc/*.sample ${STAGEDIR}${ETCDIR}
+ ${RM} -rf ${STAGEDIR}${PREFIX}/etc/*.sample
+.if ${PORT_OPTIONS:MDOCS}
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
+.endif
+
+plist:
+ cd ${WRKSRC}/src && ${SH} plist.sh > ${PLIST}
+ ${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}
.include <bsd.port.mk>