aboutsummaryrefslogtreecommitdiffstats
path: root/devel/privman/Makefile
blob: b9a4af7713afadc2a00eb822167d75e7bde6061b (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
# Created by: Kirill Ponomarew <ponomarew@oberon.net>
# $FreeBSD$

PORTNAME=   privman
PORTVERSION=    0.9.3
PORTREVISION=   2
CATEGORIES= devel security
MASTER_SITES=   GOOGLE_CODE

MAINTAINER= bdrewery@FreeBSD.org
COMMENT=    Library that makes it easy for programs to use privilege separation

LICENSE=    BSD
LICENSE_FILE=   ${WRKSRC}/LICENSE

USE_AUTOTOOLS=  libtool
USE_LDCONFIG=   yes
NO_STAGE=   yes

MLINKS=     priv_pam.3 priv_pam_acct_mgmt.3 \
        priv_pam.3 priv_pam_authenticate.3 \
        priv_pam.3 priv_pam_chauthtok.3 \
        priv_pam.3 priv_pam_close_session.3 \
        priv_pam.3 priv_pam_end.3 \
        priv_pam.3 priv_pam_fail_delay.3 \
        priv_pam.3 priv_pam_getenv.3 \
        priv_pam.3 priv_pam_get_item.3 \
        priv_pam.3 priv_pam_open_session.3 \
        priv_pam.3 priv_pam_putenv.3 \
        priv_pam.3 priv_pam_setcred.3 \
        priv_pam.3 priv_pam_set_item.3 \
        priv_pam.3 priv_pam_start.3 \
        priv_popen.3 priv_pclose.3 \
        priv_custom.3 priv_register_info_fn.3 \
        priv_custom.3 priv_register_cap_fn.3 \
        priv_custom.3 priv_invoke_info_fn.3 \
        priv_custom.3 priv_invoke_cap_fn.3
MAN3=       priv_bind.3 priv_custom.3 priv_daemon.3 priv_execve.3 \
        priv_fopen.3 priv_fork.3 priv_init.3 priv_open.3 \
        priv_pam.3 priv_popen.3 priv_rerunas.3 priv_respawn_as.3 \
        priv_wait4.3
MAN5=       privman_conf.5
MAN7=       privman.7

post-patch:
    @${REINPLACE_CMD} -e \
        's|$$(PACKAGE).d|$$(PACKAGE)|g' ${WRKSRC}/etc/Makefile.in
    @${REINPLACE_CMD} -e \
        '/^CFLAGS/s|-O2 -g|@CFLAGS@| ; \
         /^CXXFLAGS/s|-O2 -g|@CXXFLAGS@| ; \
         s|@PACKAGE@.d|@PACKAGE@| ; \
         s|-lstdc++||' ${WRKSRC}/src/Makefile.in
    @${REINPLACE_CMD} -e \
        '/^CFLAGS/s|-O2 -g|@CFLAGS@|' ${WRKSRC}/tests/Makefile.in

.include <bsd.port.mk>