summaryrefslogtreecommitdiff
path: root/shells/nologinmsg/Makefile
blob: 60e117f30d16b7f6fc12d48f3bed5b4f52798cea (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
# Ports collection makefile for:   nologinmsg
# Whom:                            Richard Rose <freebsd-security@rikrose.net>
# Date created:                    20020710
#
# $FreeBSD$
#
# The port is self contained in the src directory

PORTNAME=	nologinmsg
PORTVERSION=	1.0
CATEGORIES=	shells sysutils
MASTER_SITES=	# none
DISTFILES=	# none

MAINTAINER=	freebsd-security@rikrose.net
COMMENT=	More functional native binary replacement for /sbin/nologin

USE_REINPLACE=	yes

MAN8=		nologinmsg.8
MANCOMPRESSED=	yes

do-extract:
	@${MKDIR} ${WRKSRC}
.for i in Makefile nologinmsg.c nologinmsg.8 pathnames.h
	@${CP} ${FILESDIR}/${i} ${WRKSRC}
.endfor

post-patch:
	@${REINPLACE_CMD} -e 's|/usr/local|${PREFIX}|g' ${WRKSRC}/nologinmsg.8 \
		${WRKSRC}/pathnames.h

pre-install:
	${MKDIR} ${PREFIX}/etc/nologinmsgs

post-install:
	${STRIP_CMD} ${PREFIX}/bin/nologinmsg

.include <bsd.port.mk>