summaryrefslogtreecommitdiff
path: root/sysutils/usermatic/Makefile
blob: a36194f2663baba511191dcb7af3c8c8ec09185c (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
# Created by: Andreas Fehlner (fehlner@gmx.de)
# $FreeBSD$

PORTNAME=	usermatic
PORTVERSION=	0.6.1
CATEGORIES=	sysutils
MASTER_SITES=	http://btw23.de/johannes/usermatic/\
		http://home.arcor.de/fehlner/fbsd_ports/\
		http://home.arcor.de/teambushido/fbsd_ports/

MAINTAINER=	fehlner@gmx.de
COMMENT=	Scripts to automate the maintenance of accounts

NO_BUILD=	yes
USES=		perl5
USE_PERL5=	run

MAN1=	digestion.pl.1
MAN8=	hunter-seeker.pl.8 newusers.pl.8 reaper.pl.8

DOCS=		Artistic COPYING README CHANGES \
		doc/digestion.pl.pod doc/hunter-seeker.pl.pod \
		doc/reaper.pl.pod
EXAMPLES=	digestion/list_digested digestion/list_raw \
		newusers/sums_to_ignore

RUN_DEPENDS+=	${PREFIX}/sbin/userneu.pl:${PORTSDIR}/sysutils/userneu

NO_STAGE=	yes
do-install:
	cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
	cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN8} ${MANPREFIX}/man/man8

	cd ${WRKSRC}/digestion && ${INSTALL_SCRIPT}  digestion.pl ${PREFIX}/sbin
	cd ${WRKSRC}/hunter-seeker && ${INSTALL_SCRIPT} hunter-seeker.pl \
		${PREFIX}/sbin
	cd ${WRKSRC}/reaper && ${INSTALL_SCRIPT} reaper.pl ${PREFIX}/sbin
	cd ${WRKSRC}/newusers && ${INSTALL_SCRIPT} newusers.pl ${PREFIX}/sbin
	@${MKDIR} ${EXAMPLESDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
	@${MKDIR} ${DOCSDIR}
	cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
.endif

.include <bsd.port.mk>