summaryrefslogtreecommitdiff
path: root/devel
diff options
context:
space:
mode:
authorSylvio Cesar Teixeira <sylvio@FreeBSD.org>2012-06-17 20:17:17 +0000
committerSylvio Cesar Teixeira <sylvio@FreeBSD.org>2012-06-17 20:17:17 +0000
commit15f6695e779aca502f74a22ca9ccccc728c56ad1 (patch)
treea813b8a1ed85f0bc653fec457046213cfdbf4cb0 /devel
parent- Update to version 1.2 (diff)
- Update MASTER_SITES and WWW: line
- Support CFLAGS/CXXFLAGS properly - Support MLINKS - Add LICENSE - Add MAKE_JOBS_SAFE PR: ports/168997 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Notes
Notes: svn path=/head/; revision=299498
Diffstat (limited to 'devel')
-rw-r--r--devel/privman/Makefile61
-rw-r--r--devel/privman/pkg-descr30
2 files changed, 55 insertions, 36 deletions
diff --git a/devel/privman/Makefile b/devel/privman/Makefile
index 7de054a9e0ae..9b16dc8dfba1 100644
--- a/devel/privman/Makefile
+++ b/devel/privman/Makefile
@@ -7,35 +7,54 @@
PORTNAME= privman
PORTVERSION= 0.9.3
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= devel security
-MASTER_SITES= http://www.isso.sparta.com/opensource/privman/downloads/
+MASTER_SITES= GOOGLE_CODE
MAINTAINER= ports@FreeBSD.org
COMMENT= Library that makes it easy for programs to use privilege separation
+LICENSE= BSD
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
USE_AUTOTOOLS= libtool
-GNU_CONFIGURE= yes
USE_LDCONFIG= yes
+MAKE_JOBS_SAFE= yes
-post-patch:
- @${REINPLACE_CMD} -e 's|$$(PACKAGE).d|$$(PACKAGE)|g' \
- ${WRKSRC}/etc/Makefile.in
- @${REINPLACE_CMD} -e 's|@PACKAGE@.d|@PACKAGE@|g' \
- ${WRKSRC}/src/Makefile.in
-
-MAN3= priv_bind.3 priv_custom.3 priv_daemon.3 priv_execve.3 \
- priv_fopen.3 priv_fork.3 priv_init.3 priv_invoke_cap_fn.3 \
- priv_invoke_info_fn.3 priv_open.3 priv_pam.3 \
- priv_pam_acct_mgmt.3 priv_pam_authenticate.3 priv_pam_chauthtok.3 \
- priv_pam_close_session.3 priv_pam_end.3 priv_pam_fail_delay.3 \
- priv_pam_get_item.3 priv_pam_getenv.3 priv_pam_open_session.3 \
- priv_pam_putenv.3 priv_pam_set_item.3 priv_pam_setcred.3 \
- priv_pam_start.3 priv_pclose.3 priv_popen.3 priv_register_cap_fn.3 \
- priv_register_info_fn.3 priv_rerunas.3 priv_respawn_as.3 \
- priv_wait4.3
+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
-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>
diff --git a/devel/privman/pkg-descr b/devel/privman/pkg-descr
index 773ebe467a51..4c4e8f639b6e 100644
--- a/devel/privman/pkg-descr
+++ b/devel/privman/pkg-descr
@@ -1,17 +1,17 @@
-Privman is a library that makes it easy for programs to use
-privilege separation, a technique that prevents the leak or
-misuse of privilege from applications that must run with some
-elevated permissions. Applications that use the Privman library
-split into two halves, the half that performs valid privileged
-operations, and the half that contains the application's logic.
-The Privman library simplifies the otherwise complex task of
-separating the application, protecting the system from
-compromise if an error in the application logic is found. The
-library uses configuration files to provide fine-grained access
-control for the privileged operations, limiting exposure in
-even of an attack against the application. When the application
-is compromised, the attacker gains only the privileges of an
-unprivileged user and the specific privileges granted to the
+Privman is a library that makes it easy for programs to use privilege
+separation, a technique that prevents the leak or misuse of privilege
+from applications that must run with some elevated permissions. The
+Privman library simplifies the otherwise complex task of separating
+the application, protecting the system from compromise if an error in
+the application logic is found.
+
+Applications that use the Privman library split into two halves, the
+half that performs valid privileged operations, and the half that
+contains the application's logic. The library uses configuration files
+to provide fine-grained access control for the privileged operations,
+limiting exposure in even of an attack against the application. When
+the application is compromised, the attacker gains only the privileges
+of an unprivileged user and the specific privileges granted to the
application by the application's Privman configuration file.
-WWW: http://www.isso.sparta.com/opensource/privman/
+WWW: http://code.google.com/p/privman/