blob: 8a382398f1a71b3900a2c5939ad05cbe33cc081f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
|
# Created by: Dominic Fandrey <lon_kamikaze@gmx.de>
# $FreeBSD$
PORTNAME= bsdadminscripts
PORTVERSION= 6.1.1
PORTREVISION= 8
CATEGORIES= sysutils ports-mgmt
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}
MAINTAINER= cpm@fbsd.es
COMMENT= Collection of administration scripts
LICENSE= BSD2CLAUSE
NO_BUILD= yes
NO_ARCH= yes
TMP?= /tmp
VAR?= /var
PORTDOCS= ABOUT CHANGES INSTALL NOTES THANKS
OPTIONS_DEFINE= DOCS
SUB_FILES= distviper pkg_libchk pkg_upgrade uma
SUB_LIST= TMP=${TMP} PREFIX=${PREFIX} VAR=${VAR} PORTS=${PORTSDIR}
DOCS_VARS_OFF= EVALDOCS=-nodoc
do-install:
cd ${WRKSRC}/src && ${SH} install.sh \
-prefix=${STAGEDIR}${PREFIX} \
-ports=${STAGEDIR}${PORTSDIR} \
-distdir=${STAGEDIR}${DISTDIR} \
-datadir=${STAGEDIR}${DATADIR} \
${EVALDOCS}
.for n in distviper 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
${MKDIR} ${STAGEDIR}${ETCDIR}
${MV} ${STAGEDIR}${PREFIX}/etc/*.sample ${STAGEDIR}${ETCDIR}
${RM} -rf ${STAGEDIR}${PREFIX}/etc/*.sample
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
|