aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/bsdadminscripts/Makefile
blob: 1b0057a9636677808b8c3ce15b81725f03e10ac1 (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    bsdadminscripts
# Date created:     15 May 2006
# Whom:         Dominic Fandrey <lon_kamikaze@gmx.de>
#
# $FreeBSD$
#

PORTNAME=   bsdadminscripts
PORTVERSION=    2.1.1
CATEGORIES= sysutils
MASTER_SITES=   ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}

MAINTAINER= lon_kamikaze@gmx.de
COMMENT=    A small collection of administration scripts

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
BUILDFLAGS_FILES=   buildflags.mk buildflags.awk buildflags.conf

.if !defined(WITHOUT_RCSTART)
PLIST_FILES+=   ${RC_SCRIPTS:S,^,sbin/rc,}
MAN1+=      rcstart.1
.endif

.if !defined(WITHOUT_PORTCONFIG)
RUN_DEPENDS+=   portupgrade:${PORTSDIR}/sysutils/portupgrade
PLIST_FILES+=   ${PORT_SCRIPTS:S,^,sbin/port,}
MAN1+=      portconfig.1
.endif

.if !defined(WITHOUT_BUILDFLAGS)
PLIST_FILES+=   ${BUILDFLAGS_FILES:S,^,share/$(PORTNAME)/,}
PLIST_DIRS+=    share/${PORTNAME}
MAN1+=      buildflags.mk.1 buildflags.conf.1 buildflags.awk.1
.endif

do-install:
.if !defined(WITHOUT_RCSTART)
    @${ECHO_MSG} "===>  Installing rcstart."
    @${INSTALL} ${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/
.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}
.for _file in ${BUILDFLAGS_FILES}
    @${INSTALL} ${WRKSRC}/${_file} ${PREFIX}/share/${PORTNAME}/
.endfor
.endif
    @${ECHO_MSG} "===>  Installing man pages."
.for _manpage in ${MAN1}
    @${INSTALL} ${WRKSRC}/${_manpage} ${PREFIX}/man/man1/
.endfor

post-install:
    @${CAT} ${.CURDIR}/pkg-message

.include <bsd.port.mk>