aboutsummaryrefslogtreecommitdiffstats
path: root/security/pwauth/Makefile
blob: ae54ce45fef6f06c6c8a7c4109a30ecee9fef9b4 (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
# New ports collection makefile for:    pwauth
# Date created:             Oct 14 2004
# Whom:                 clement
#
# $FreeBSD$
#

PORTNAME=   pwauth
PORTVERSION=    2.3.2
CATEGORIES= security www
MASTER_SITES=   http://www.unixpapa.com/software/

MAINTAINER= clement@FreeBSD.org
COMMENT=    A Unix Web Authenticator

PLIST_FILES=    bin/pwauth bin/checkfaillog

ALL_TARGET= pwauth checkfaillog
MAKE_ARGS=  CC="${CC}" CFLAGS="${CFLAGS}" LIB="-lcrypt -lpam"

.include <bsd.port.pre.mk>

WWWUID!=    ${ID} -u ${WWWOWN}

post-patch:
    @${REINPLACE_CMD} "s/%%UIDS%%/${WWWUID}/ ; \
        s/%%MINUID%%/1000/" ${WRKSRC}/config.h

do-install:
    -@${MKDIR} -p ${PREFIX}/bin
    @${INSTALL_PROGRAM} ${WRKSRC}/pwauth ${PREFIX}/bin
    @${INSTALL_PROGRAM} ${WRKSRC}/checkfaillog ${PREFIX}/bin
    @${CHMOD} u=rxs ${PREFIX}/bin/pwauth

.include <bsd.port.post.mk>