mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-19 03:52:17 +00:00
40771ce9fa
Previously, pkg_libchk, pkg_upgrade, and uma failed to run. Bump PORTREVISION PR: 193003 Submitted by: Carlos Jacobo Puga Medina <cpm@fbsd.es> Reviewed by: marino
69 lines
1.8 KiB
Makefile
69 lines
1.8 KiB
Makefile
# Created by: Dominic Fandrey <lon_kamikaze@gmx.de>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= bsdadminscripts
|
|
PORTVERSION= 6.1.1
|
|
PORTREVISION= 7
|
|
CATEGORIES= sysutils ports-mgmt
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
|
|
|
|
MAINTAINER= cpm@fbsd.es
|
|
COMMENT= Collection of administration scripts
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
NO_BUILD= yes
|
|
|
|
TMP?= /tmp
|
|
VAR?= /var
|
|
|
|
PORTDOCS= ABOUT CHANGES INSTALL NOTES THANKS
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
SUB_FILES= pkg_libchk pkg_upgrade uma
|
|
SUB_LIST= TMP=${TMP} PREFIX=${PREFIX} VAR=${VAR} PORTS=${PORTSDIR}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ! ${PORT_OPTIONS:MDOCS}
|
|
EVALDOCS= -nodoc
|
|
.endif
|
|
|
|
do-install:
|
|
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
|
|
${MV} ${WRKDIR}/${n} ${WRKSRC}/src
|
|
${INSTALL_SCRIPT} ${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>
|