Lines 6-125
Link Here
|
6 |
# |
6 |
# |
7 |
|
7 |
|
8 |
PORTNAME= bsdadminscripts |
8 |
PORTNAME= bsdadminscripts |
9 |
PORTVERSION= 4.4 |
9 |
PORTVERSION= 4.4.2 |
10 |
CATEGORIES= sysutils ports-mgmt |
10 |
CATEGORIES= sysutils ports-mgmt |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
11 |
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
12 |
MASTER_SITE_SUBDIR= ${PORTNAME} |
13 |
|
13 |
|
14 |
MAINTAINER= kamikaze@bsdforen.de |
14 |
MAINTAINER= kamikaze@bsdforen.de |
15 |
COMMENT= A small collection of administration scripts |
15 |
COMMENT= A collection of administration scripts |
16 |
|
|
|
17 |
OPTIONS+= BUILDFLAGS "Build configuration system" On |
18 |
OPTIONS+= PKG_LIBCHK "Check for links against missing libraries" On |
19 |
OPTIONS+= PKG_VALIDATE "Check for broken and missing files" On |
20 |
OPTIONS+= PORTCONFIG "Run common make targets on several ports" On |
21 |
OPTIONS+= RCSTART "Use rc scripts based on PROVIDE" On |
22 |
|
16 |
|
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src |
17 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src |
24 |
NO_BUILD= yes |
18 |
NO_BUILD= yes |
25 |
MANCOMPRESSED= no |
19 |
MANCOMPRESSED= no |
26 |
|
20 |
|
27 |
MAN1= bsdadminscripts.1 |
21 |
.if defined(NOPORTDOCS) |
|
|
22 |
NOPORTDOCS= -nodoc |
23 |
.else |
24 |
MAN1= bsdadminscripts.1 \ |
25 |
rcstart.1 \ |
26 |
portconfig.1 \ |
27 |
buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \ |
28 |
pkg_validate.1 \ |
29 |
pkg_libchk.1 |
28 |
|
30 |
|
29 |
RC_SCRIPTS= start stop restart status onestart onestop onerestart onestatus |
31 |
RC_SCRIPTS= stop restart status onestart onestop onerestart onestatus |
30 |
PORT_SCRIPTS= config build clean fetch package \ |
32 |
PORT_SCRIPTS= build clean fetch package \ |
31 |
config-recursive fetch-recursive |
33 |
config-recursive fetch-recursive |
32 |
BUILDFLAGS_SCRIPTS= buildflags.awk |
34 |
MLINKS+= ${RC_SCRIPTS:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} \ |
33 |
BUILDFLAGS_FILES= buildflags.mk |
35 |
${PORT_SCRIPTS:S,^,port,:S,$,.1,:S,^,portconfig.1 ,} |
34 |
BUILDFLAGS_ETC= buildflags.conf.sample |
|
|
35 |
|
36 |
.include <bsd.port.pre.mk> |
37 |
|
38 |
.if !defined(WITHOUT_RCSTART) |
39 |
PLIST_FILES+= ${RC_SCRIPTS:S,^,sbin/rc,} |
40 |
MAN1+= rcstart.1 |
41 |
MLINKS+= ${RC_SCRIPTS:Nstart:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,} |
42 |
.endif |
43 |
|
44 |
.if !defined(WITHOUT_PORTCONFIG) |
45 |
PLIST_FILES+= ${PORT_SCRIPTS:S,^,sbin/port,} |
46 |
MAN1+= portconfig.1 |
47 |
MLINKS+= ${PORT_SCRIPTS:Nconfig:S,^,port,:S,$,.1,:S,^,portconfig.1 ,} |
48 |
.endif |
49 |
|
50 |
.if !defined(WITHOUT_BUILDFLAGS) |
51 |
PLIST_FILES+= ${BUILDFLAGS_FILES:S,^,${DATADIR_REL}/,} |
52 |
PLIST_FILES+= ${BUILDFLAGS_SCRIPTS:S,^,${DATADIR_REL}/,} |
53 |
ETC_FILES+= ${BUILDFLAGS_ETC} |
54 |
PLIST_DIRS+= ${DATADIR_REL} |
55 |
MAN1+= buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 |
56 |
.endif |
57 |
|
58 |
.if !defined(WITHOUT_PKG_VALIDATE) |
59 |
PLIST_FILES+= sbin/pkg_validate |
60 |
MAN1+= pkg_validate.1 |
61 |
.endif |
62 |
|
63 |
.if !defined(WITHOUT_PKG_VALIDATE) |
64 |
PLIST_FILES+= sbin/pkg_libchk |
65 |
MAN1+= pkg_libchk.1 |
66 |
.endif |
36 |
.endif |
67 |
|
37 |
|
68 |
PLIST_FILES+= ${ETC_FILES:S,^,etc/,} |
38 |
PLIST= ${WRKDIR}/plist |
69 |
|
39 |
|
70 |
do-install: |
40 |
do-install: |
71 |
.if !defined(WITHOUT_RCSTART) |
41 |
@cd ${WRKSRC}; ./list.sh -nodoc > ${PLIST} |
72 |
@${ECHO_MSG} "===> Installing rcstart." |
42 |
@${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST} |
73 |
@${INSTALL_SCRIPT} ${WRKSRC}/rcstart ${PREFIX}/sbin/ |
43 |
@cd ${WRKSRC}; ./install.sh \ |
74 |
.for _link in ${RC_SCRIPTS:Nstart} |
44 |
-prefix=${PREFIX} -ports=${PORTSDIR} ${NOPORTDOCS} |
75 |
@${LN} ${PREFIX}/sbin/rcstart ${PREFIX}/sbin/rc${_link} |
|
|
76 |
.endfor |
77 |
.endif |
78 |
.if !defined(WITHOUT_PORTCONFIG) |
79 |
@${ECHO_MSG} "===> Installing portconfig." |
80 |
@${INSTALL_SCRIPT} ${WRKSRC}/portconfig ${PREFIX}/sbin/ |
81 |
.for _link in ${PORT_SCRIPTS:Nconfig} |
82 |
@${LN} ${PREFIX}/sbin/portconfig ${PREFIX}/sbin/port${_link} |
83 |
.endfor |
84 |
.endif |
85 |
.if !defined(WITHOUT_BUILDFLAGS) |
86 |
@${ECHO_MSG} "===> Installing buildflags." |
87 |
@${MKDIR} ${DATADIR} |
88 |
.for _file in ${BUILDFLAGS_FILES} |
89 |
@${INSTALL_DATA} ${WRKSRC}/${_file} ${DATADIR} |
90 |
.endfor |
91 |
.for _file in ${BUILDFLAGS_SCRIPTS} |
92 |
@${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${DATADIR} |
93 |
.endfor |
94 |
.endif |
95 |
.if !defined(WITHOUT_PKG_LIBCHK) |
96 |
@${ECHO_MSG} "===> Installing pkg_libchk." |
97 |
@${INSTALL_SCRIPT} ${WRKSRC}/pkg_libchk ${PREFIX}/sbin/ |
98 |
.endif |
99 |
.if !defined(WITHOUT_PKG_VALIDATE) |
100 |
@${ECHO_MSG} "===> Installing pkg_validate." |
101 |
@${INSTALL_SCRIPT} ${WRKSRC}/pkg_validate ${PREFIX}/sbin/ |
102 |
.endif |
103 |
.if defined(ETC_FILES) |
104 |
@${ECHO_MSG} "===> Installing configuration samples." |
105 |
.for _conf in ${ETC_FILES} |
106 |
@${INSTALL_DATA} ${WRKSRC}/${_conf} ${PREFIX}/etc |
107 |
.endfor |
108 |
.endif |
109 |
.if defined(NOPORTDOCS) |
110 |
.undef MAN1 |
111 |
.undef MLINKS |
112 |
.else |
113 |
@${ECHO_MSG} "===> Installing manual pages." |
114 |
.for _manpage in ${MAN1} |
115 |
@${INSTALL_MAN} ${WRKSRC}/${_manpage} ${MANPREFIX}/man/man1/ |
116 |
.endfor |
117 |
.endif |
118 |
|
119 |
message: |
120 |
@${CAT} ${PKGMESSAGE} |
121 |
|
122 |
post-install: message |
123 |
@${DO_NADA} |
124 |
|
45 |
|
125 |
.include <bsd.port.post.mk> |
46 |
.include <bsd.port.mk> |