summaryrefslogtreecommitdiff
path: root/sysutils/bsdadminscripts/Makefile
blob: 74db4a4edd2dbb220e0b40e31d098d4e26ab7eac (plain) (blame)
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
# Created by: Dominic Fandrey <lon_kamikaze@gmx.de>
# $FreeBSD$

PORTNAME=	bsdadminscripts
PORTVERSION=	6.1.1
PORTREVISION=	4
CATEGORIES=	sysutils ports-mgmt
MASTER_SITES=	SF/${PORTNAME}/${PORTNAME}

MAINTAINER=	kamikaze@bsdforen.de
COMMENT=	Collection of administration scripts

WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}/src
NO_BUILD=	yes
MANCOMPRESSED=	yes

NO_STAGE=	yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MDOCS}
MAN1=		bsdadminscripts.1 \
		buildflags.mk.1 buildflags.conf.1 buildflags.awk.1 \
		distviper.1 \
		pkg_libchk.1 \
		pkg_upgrade.1 \
		pkg_validate.1 \
		portconfig.1 \
		rcstart.1 \
		uma.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 ,}
.else
EVALDOCS=           -nodoc
.endif

plist: patch
	@cd ${WRKSRC}; ./plist.sh -nodoc > ${PLIST}
	@${ECHO} "@dirrm ${DATADIR_REL}" >> ${PLIST}

do-install:
	@cd ${WRKSRC}; ./install.sh \
		-prefix=${PREFIX} -ports=${PORTSDIR} -distdir=${DISTDIR}  \
		-datadir=${DATADIR} ${EVALDOCS}

.include <bsd.port.mk>