aboutsummaryrefslogtreecommitdiff
path: root/sysutils/bsdadminscripts/Makefile
diff options
context:
space:
mode:
authorEdwin Groothuis <edwin@FreeBSD.org>2008-05-12 23:21:22 +0000
committerEdwin Groothuis <edwin@FreeBSD.org>2008-05-12 23:21:22 +0000
commit1acb6e0b2b586d582c0cbe225dffbf354d4cab33 (patch)
treeb35ad63be55503349b217652a4cf4326b0f597d2 /sysutils/bsdadminscripts/Makefile
parent614651311e4301538c12097eca049732d22e6f66 (diff)
downloadports-1acb6e0b2b586d582c0cbe225dffbf354d4cab33.tar.gz
ports-1acb6e0b2b586d582c0cbe225dffbf354d4cab33.zip
Update to 4.4.2
PR: ports/122727 Submitted by: Dominic Fandrey <kamikaze@bsdforen.de>
Notes
Notes: svn path=/head/; revision=212973
Diffstat (limited to 'sysutils/bsdadminscripts/Makefile')
-rw-r--r--sysutils/bsdadminscripts/Makefile123
1 files changed, 22 insertions, 101 deletions
diff --git a/sysutils/bsdadminscripts/Makefile b/sysutils/bsdadminscripts/Makefile
index 153e455aa5ad..c0038b3b26e1 100644
--- a/sysutils/bsdadminscripts/Makefile
+++ b/sysutils/bsdadminscripts/Makefile
@@ -6,120 +6,41 @@
#
PORTNAME= bsdadminscripts
-PORTVERSION= 4.4
+PORTVERSION= 4.4.2
CATEGORIES= sysutils ports-mgmt
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
MAINTAINER= kamikaze@bsdforen.de
-COMMENT= A small collection of administration scripts
-
-OPTIONS+= BUILDFLAGS "Build configuration system" On
-OPTIONS+= PKG_LIBCHK "Check for links against missing libraries" On
-OPTIONS+= PKG_VALIDATE "Check for broken and missing files" On
-OPTIONS+= PORTCONFIG "Run common make targets on several ports" On
-OPTIONS+= RCSTART "Use rc scripts based on PROVIDE" On
+COMMENT= A collection of administration scripts
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
NO_BUILD= yes
MANCOMPRESSED= no
-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_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,}
-MAN1+= rcstart.1
-MLINKS+= ${RC_SCRIPTS:Nstart:S,^,rc,:S,$,.1,:S,^,rcstart.1 ,}
-.endif
-
-.if !defined(WITHOUT_PORTCONFIG)
-PLIST_FILES+= ${PORT_SCRIPTS:S,^,sbin/port,}
-MAN1+= portconfig.1
-MLINKS+= ${PORT_SCRIPTS:Nconfig:S,^,port,:S,$,.1,:S,^,portconfig.1 ,}
-.endif
-
-.if !defined(WITHOUT_BUILDFLAGS)
-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
-
-.if !defined(WITHOUT_PKG_VALIDATE)
-PLIST_FILES+= sbin/pkg_libchk
-MAN1+= pkg_libchk.1
-.endif
-
-PLIST_FILES+= ${ETC_FILES:S,^,etc/,}
-
-do-install:
-.if !defined(WITHOUT_RCSTART)
- @${ECHO_MSG} "===> Installing rcstart."
- @${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_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} ${DATADIR}
-.for _file in ${BUILDFLAGS_FILES}
- @${INSTALL_DATA} ${WRKSRC}/${_file} ${DATADIR}
-.endfor
-.for _file in ${BUILDFLAGS_SCRIPTS}
- @${INSTALL_SCRIPT} ${WRKSRC}/${_file} ${DATADIR}
-.endfor
-.endif
-.if !defined(WITHOUT_PKG_LIBCHK)
- @${ECHO_MSG} "===> Installing pkg_libchk."
- @${INSTALL_SCRIPT} ${WRKSRC}/pkg_libchk ${PREFIX}/sbin/
-.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
.if defined(NOPORTDOCS)
-.undef MAN1
-.undef MLINKS
+NOPORTDOCS= -nodoc
.else
- @${ECHO_MSG} "===> Installing manual pages."
-.for _manpage in ${MAN1}
- @${INSTALL_MAN} ${WRKSRC}/${_manpage} ${MANPREFIX}/man/man1/
-.endfor
+MAN1= bsdadminscripts.1 \
+ rcstart.1 \
+ portconfig.1 \
+ buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \
+ pkg_validate.1 \
+ pkg_libchk.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 ,}
.endif
-message:
- @${CAT} ${PKGMESSAGE}
+plist: patch
+ @cd ${WRKSRC}; ./list.sh -nodoc > ${PLIST}
+ @${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}
-post-install: message
- @${DO_NADA}
+do-install:
+ @cd ${WRKSRC}; ./install.sh \
+ -prefix=${PREFIX} -ports=${PORTSDIR} ${NOPORTDOCS}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>