Index: head/security/gringotts/Makefile =================================================================== --- head/security/gringotts/Makefile (revision 433848) +++ head/security/gringotts/Makefile (revision 433849) @@ -1,40 +1,42 @@ # Created by: Anders Nordby # $FreeBSD$ PORTNAME= gringotts PORTVERSION= 1.2.10 PORTREVISION= 4 CATEGORIES= security MASTER_SITES= BERLIOS MAINTAINER= ports@FreeBSD.org COMMENT= GTK application to securely store sensitive data +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + LIB_DEPENDS= libpopt.so:devel/popt \ libgringotts.so:security/libgringotts -USES= gettext pkgconfig +USES= gettext localbase pkgconfig USE_GNOME= gtk20 GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LIBS+= -L${LOCALBASE}/lib - OPTIONS_DEFINE= DOCS post-patch: @${REINPLACE_CMD} -e \ '/^install-data-am:/s|install-DsktpDATA|| ; \ /^install-data-am:/s|install-docDATA|| ; \ s|@md5sum|@md5|' ${WRKSRC}/Makefile.in @${REINPLACE_CMD} -e \ '/^install-exec-am:/s|install-exec-local||' ${WRKSRC}/src/Makefile.in post-install: ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${STAGEDIR}${PREFIX}/share/applications + +post-install-DOCS-on: @${MKDIR} ${STAGEDIR}${DOCSDIR} .for file in AUTHORS BUGS ChangeLog FAQ NEWS README TODO ${INSTALL_DATA} ${WRKSRC}/${file} ${STAGEDIR}${DOCSDIR} .endfor .include Index: head/security/gringotts/files/patch-grg_safe.c =================================================================== --- head/security/gringotts/files/patch-grg_safe.c (revision 433848) +++ head/security/gringotts/files/patch-grg_safe.c (nonexistent) @@ -1,37 +0,0 @@ ---- src/grg_safe.c.orig 2008-01-04 22:08:43.000000000 +0900 -+++ src/grg_safe.c 2009-12-22 04:53:36.000000000 +0900 -@@ -33,6 +33,7 @@ - - #include - #include -+#include - #include - #include - #include -@@ -44,7 +45,6 @@ - #include - #endif - #include --#include - #include - #ifdef linux - #include -@@ -96,9 +96,6 @@ - grg_mlockall_and_drop_root_privileges(void) - { - /* drop eventual group root privileges */ -- setgid(getgid()); -- setgid(getgid()); /* twice for counter "saved IDs", cfr. */ -- /* Secure Programming HowTo */ - #ifdef HAVE_SYS_FSUID_H - setfsgid(getgid()); - setfsgid(getgid()); -@@ -148,8 +145,6 @@ - #endif - - /* drop root privileges */ -- setuid(getuid()); -- setuid(getuid()); - #ifdef HAVE_SYS_FSUID_H - setfsuid(getuid()); - setfsuid(getuid()); Property changes on: head/security/gringotts/files/patch-grg_safe.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/security/gringotts/files/patch-src_grg__safe.c =================================================================== --- head/security/gringotts/files/patch-src_grg__safe.c (nonexistent) +++ head/security/gringotts/files/patch-src_grg__safe.c (revision 433849) @@ -0,0 +1,37 @@ +--- src/grg_safe.c.orig 2008-01-04 13:08:43 UTC ++++ src/grg_safe.c +@@ -33,6 +33,7 @@ + + #include + #include ++#include + #include + #include + #include +@@ -44,7 +45,6 @@ + #include + #endif + #include +-#include + #include + #ifdef linux + #include +@@ -96,9 +96,6 @@ gboolean + grg_mlockall_and_drop_root_privileges(void) + { + /* drop eventual group root privileges */ +- setgid(getgid()); +- setgid(getgid()); /* twice for counter "saved IDs", cfr. */ +- /* Secure Programming HowTo */ + #ifdef HAVE_SYS_FSUID_H + setfsgid(getgid()); + setfsgid(getgid()); +@@ -148,8 +145,6 @@ grg_mlockall_and_drop_root_privileges(vo + #endif + + /* drop root privileges */ +- setuid(getuid()); +- setuid(getuid()); + #ifdef HAVE_SYS_FSUID_H + setfsuid(getuid()); + setfsuid(getuid()); Property changes on: head/security/gringotts/files/patch-src_grg__safe.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property