aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2007-06-18 14:52:39 +0800
committerrafan <rafan@FreeBSD.org>2007-06-18 14:52:39 +0800
commitdd5d05684fb6e7d84cc35cbaf323776b9aeef768 (patch)
treeef5bffa7b1c5b340c40da424f8ea1b883d5a6c78 /sysutils
parent81e90d31b73a26c7dcf39d2c3c6098060dc0232f (diff)
downloadfreebsd-ports-gnome-dd5d05684fb6e7d84cc35cbaf323776b9aeef768.tar.gz
freebsd-ports-gnome-dd5d05684fb6e7d84cc35cbaf323776b9aeef768.tar.zst
freebsd-ports-gnome-dd5d05684fb6e7d84cc35cbaf323776b9aeef768.zip
- Update to 3.0
- Add new category: ports-mgmt - OPTIONS'ify PR: ports/113795 Submitted by: Dominic Fandrey <lon_kamikaze at gmx.de> (maintainer) - Use DATADIR, INSTALL_* macros Approved by: Dominic Fandrey <lon_kamikaze at gmx.de> (maintainer)
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bsdadminscripts/Makefile54
-rw-r--r--sysutils/bsdadminscripts/distinfo6
2 files changed, 46 insertions, 14 deletions
diff --git a/sysutils/bsdadminscripts/Makefile b/sysutils/bsdadminscripts/Makefile
index 2485e23a30ff..c6a1bd3f0070 100644
--- a/sysutils/bsdadminscripts/Makefile
+++ b/sysutils/bsdadminscripts/Makefile
@@ -6,14 +6,20 @@
#
PORTNAME= bsdadminscripts
-PORTVERSION= 2.1.4
-CATEGORIES= sysutils
+PORTVERSION= 3.0
+CATEGORIES= sysutils ports-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= lon_kamikaze@gmx.de
COMMENT= A small collection of administration scripts
+OPTIONS+= RCSTART "Use rc scripts based on PROVIDE" On
+OPTIONS+= PORTCONFIG "Depends on portupgrade" On
+OPTIONS+= BUILDFLAGS "Build configuration system" On
+OPTIONS+= PKG_VALIDATE "Check for broken and missing files" On
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
NO_BUILD= yes
MANCOMPRESSED= no
@@ -22,7 +28,11 @@ MAN1= bsdadminscripts.1
RC_SCRIPTS= start stop restart status onestart onestop onerestart onestatus
PORT_SCRIPTS= config build clean fetch package \
config-recursive fetch-recursive
-BUILDFLAGS_FILES= buildflags.mk buildflags.awk buildflags.conf
+BUILDFLAGS_SCRIPTS= buildflags.awk
+BUILDFLAGS_FILES= buildflags.mk
+BUILDFLAGS_ETC= buildflags.conf.sample
+
+.include <bsd.port.pre.mk>
.if !defined(WITHOUT_RCSTART)
PLIST_FILES+= ${RC_SCRIPTS:S,^,sbin/rc,}
@@ -36,36 +46,58 @@ MAN1+= portconfig.1
.endif
.if !defined(WITHOUT_BUILDFLAGS)
-PLIST_FILES+= ${BUILDFLAGS_FILES:S,^,share/$(PORTNAME)/,}
-PLIST_DIRS+= share/${PORTNAME}
+PLIST_FILES+= ${BUILDFLAGS_FILES:S,^,${DATADIR_REL}/,}
+PLIST_FILES+= ${BUILDFLAGS_SCRIPTS:S,^,${DATADIR_REL}/,}
+ETC_FILES+= ${BUILDFLAGS_ETC}
+PLIST_DIRS+= ${DATADIR_REL}
MAN1+= buildflags.mk.1 buildflags.conf.1 buildflags.awk.1
.endif
+.if !defined(WITHOUT_PKG_VALIDATE)
+PLIST_FILES+= sbin/pkg_validate
+MAN1+= pkg_validate.1
+.endif
+
+PLIST_FILES+= ${ETC_FILES:S,^,etc/,}
+
do-install:
.if !defined(WITHOUT_RCSTART)
@${ECHO_MSG} "===> Installing rcstart."
- @${INSTALL} ${WRKSRC}/rcstart ${PREFIX}/sbin/
+ @${INSTALL_SCRIPT} ${WRKSRC}/rcstart ${PREFIX}/sbin/
.for _link in ${RC_SCRIPTS:Nstart}
@${LN} ${PREFIX}/sbin/rcstart ${PREFIX}/sbin/rc${_link}
.endfor
.endif
.if !defined(WITHOUT_PORTCONFIG)
@${ECHO_MSG} "===> Installing portconfig."
- @${INSTALL} ${WRKSRC}/portconfig ${PREFIX}/sbin/
+ @${INSTALL_SCRIPT} ${WRKSRC}/portconfig ${PREFIX}/sbin/
.for _link in ${PORT_SCRIPTS:Nconfig}
@${LN} ${PREFIX}/sbin/portconfig ${PREFIX}/sbin/port${_link}
.endfor
.endif
.if !defined(WITHOUT_BUILDFLAGS)
@${ECHO_MSG} "===> Installing buildflags."
- @${MKDIR} ${PREFIX}/share/${PORTNAME}
+ @${MKDIR} ${DATADIR}
.for _file in ${BUILDFLAGS_FILES}
- @${INSTALL} ${WRKSRC}/${_file} ${PREFIX}/share/${PORTNAME}/
+ @${INSTALL_DATA} ${WRKSRC}/${_file} ${DATADIR}
+.endfor
+.for _file in ${BUILDFLAGS_SCRIPTS}
+ @${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${DATADIR}
+.endfor
+.endif
+.if !defined(WITHOUT_PKG_VALIDATE)
+ @${ECHO_MSG} "===> Installing pkg_validate."
+ @${INSTALL_SCRIPT} ${WRKSRC}/pkg_validate ${PREFIX}/sbin/
+.endif
+.if defined(ETC_FILES)
+ @${ECHO_MSG} "===> Installing configuration samples."
+.for _conf in ${ETC_FILES}
+ @${INSTALL_DATA} ${WRKSRC}/${_conf} ${PREFIX}/etc
.endfor
.endif
@${ECHO_MSG} "===> Installing man pages."
.for _manpage in ${MAN1}
- @${INSTALL} ${WRKSRC}/${_manpage} ${PREFIX}/man/man1/
+ @${INSTALL_MAN} ${WRKSRC}/${_manpage} ${MANPREFIX}/man/man1/
.endfor
message:
@@ -74,4 +106,4 @@ message:
post-install: message
@${DO_NADA}
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>
diff --git a/sysutils/bsdadminscripts/distinfo b/sysutils/bsdadminscripts/distinfo
index ad386a528865..7e5c9871ae71 100644
--- a/sysutils/bsdadminscripts/distinfo
+++ b/sysutils/bsdadminscripts/distinfo
@@ -1,3 +1,3 @@
-MD5 (bsdadminscripts-2.1.4.tar.gz) = 49256f9c92a156be1d93dcf386d90c2b
-SHA256 (bsdadminscripts-2.1.4.tar.gz) = a3af9606ab93b3a63c1807e03ab81101cb9d1e749a9e5a406701241bb6c7ca9a
-SIZE (bsdadminscripts-2.1.4.tar.gz) = 12725
+MD5 (bsdadminscripts-3.0.tar.gz) = 894dd8bcd3a6012cfec877fd11afac67
+SHA256 (bsdadminscripts-3.0.tar.gz) = c06c41a6b41b85b4daee0031f201920a5ff00b4ed48e020c0cda7388071a3ee1
+SIZE (bsdadminscripts-3.0.tar.gz) = 15705