ports/142043: Update port: security/gringotts to 1.2.10
KATO Tsuguru
tkato432 at yahoo.com
Sat Dec 26 18:10:08 UTC 2009
>Number: 142043
>Category: ports
>Synopsis: Update port: security/gringotts to 1.2.10
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sat Dec 26 18:10:07 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator: KATO Tsuguru
>Release: FreeBSD 7.2-RELEASE-p5 i386
>Organization:
>Environment:
>Description:
- Update to version 1.2.10
Remove file:
files/patch-po-Makefile.in.in
files/patch-src-Makefile.in
>How-To-Repeat:
>Fix:
diff -urN /usr/ports/security/gringotts/Makefile security/gringotts/Makefile
--- /usr/ports/security/gringotts/Makefile 2009-08-01 04:44:03.000000000 +0900
+++ security/gringotts/Makefile 2009-12-22 04:52:02.000000000 +0900
@@ -6,44 +6,39 @@
#
PORTNAME= gringotts
-PORTVERSION= 1.2.8
-PORTREVISION= 7
+PORTVERSION= 1.2.10
CATEGORIES= security
-MASTER_SITES= BERLIOS \
- ftp://ftp.nuug.no/pub/anders/distfiles/
+MASTER_SITES= BERLIOS
MAINTAINER= ports at FreeBSD.org
COMMENT= GTK application to securely store sensitive data
-LIB_DEPENDS= gringotts.2:${PORTSDIR}/security/libgringotts \
- popt.0:${PORTSDIR}/devel/popt
+LIB_DEPENDS= popt.0:${PORTSDIR}/devel/popt \
+ gringotts.2:${PORTSDIR}/security/libgringotts
-USE_BZIP2= yes
-GNU_CONFIGURE= yes
USE_GNOME= gtk20
-WANT_GNOME= yes
-CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib" CPPFLAGS="-I${LOCALBASE}/include"
-CONFIGURE_ARGS+= --disable-env-check
-
-.include <bsd.port.pre.mk>
-
-.if ${HAVE_GNOME:Mgnomehier}!=""
-USE_GNOME+= gnomehier
-PLIST_SUB+= GNOMEHIER=''
-.else
-PLIST_SUB+= GNOMEHIER='@comment '
-.endif
+GNU_CONFIGURE= yes
+CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+
+CPPFLAGS= -I${LOCALBASE}/include
+LDFLAGS= -L${LOCALBASE}/lib
post-patch:
- ${REINPLACE_CMD} -E -e "s|^(gringottsdocdir =).*|\1 ${DOCSDIR}|;s|md5sum|md5|g" ${WRKSRC}/Makefile.in
- @${FIND} ${WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
- 's|-D.*_DISABLE_DEPRECATED||g'
-.if defined(NOPORTDOCS)
- ${REINPLACE_CMD} -E -e "s|^(install-data-am:.*)install-gringottsdocDATA|\1|" ${WRKSRC}/Makefile.in
-.endif
-.if ${HAVE_GNOME:Mgnomehier}==""
- ${REINPLACE_CMD} -E -e "s|^(install-data-am:.*)install-DsktpDATA|\1|" \
- ${WRKSRC}/Makefile.in
+ @${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:
+ @${MKDIR} ${PREFIX}/share/applications
+ ${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications
+.if !defined(NOPORTDOCS)
+ @${MKDIR} ${DOCSDIR}
+.for file in AUTHORS BUGS ChangeLog FAQ NEWS README TODO
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -urN /usr/ports/security/gringotts/distinfo security/gringotts/distinfo
--- /usr/ports/security/gringotts/distinfo 2006-01-24 13:40:17.000000000 +0900
+++ security/gringotts/distinfo 2009-12-22 04:26:36.000000000 +0900
@@ -1,3 +1,3 @@
-MD5 (gringotts-1.2.8.tar.bz2) = f84add2aadca642a354105f63c117dec
-SHA256 (gringotts-1.2.8.tar.bz2) = cc4640cf57f0dc31799a6a4db44b9d9a06ee08be14f1c565512db28d3ae8d6f0
-SIZE (gringotts-1.2.8.tar.bz2) = 174175
+MD5 (gringotts-1.2.10.tar.gz) = 6f17589f1cb7d08be73728843dcf286a
+SHA256 (gringotts-1.2.10.tar.gz) = 19784f68f76b211d076124c74d2f5ca5a156e4af7ed32d72a1ba45547782179d
+SIZE (gringotts-1.2.10.tar.gz) = 251963
diff -urN /usr/ports/security/gringotts/files/patch-grg_safe.c security/gringotts/files/patch-grg_safe.c
--- /usr/ports/security/gringotts/files/patch-grg_safe.c 2003-05-14 19:26:35.000000000 +0900
+++ security/gringotts/files/patch-grg_safe.c 2009-12-22 04:53:56.000000000 +0900
@@ -1,34 +1,35 @@
---- src/grg_safe.c.orig Wed May 14 02:02:13 2003
-+++ src/grg_safe.c Wed May 14 02:03:43 2003
+--- 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 <stdlib.h>
#include <string.h>
+#include <sys/types.h>
+ #include <errno.h>
#include <regex.h>
#include <unistd.h>
- #include <fcntl.h>
-@@ -43,7 +44,6 @@
+@@ -44,7 +45,6 @@
#include <sys/fsuid.h>
#endif
#include <sys/time.h>
-#include <sys/types.h>
#include <sys/resource.h>
- #include <sys/stat.h>
-
-@@ -59,8 +59,6 @@
+ #ifdef linux
+ #include <sys/utsname.h>
+@@ -96,9 +96,6 @@
grg_mlockall_and_drop_root_privileges(void)
{
- // drop eventual group root privileges
+ /* drop eventual group root privileges */
- setgid(getgid());
-- setgid(getgid()); // twice for counter "saved IDs", cfr.
- // Secure Programming HowTo
+- setgid(getgid()); /* twice for counter "saved IDs", cfr. */
+- /* Secure Programming HowTo */
#ifdef HAVE_SYS_FSUID_H
setfsgid(getgid());
-@@ -84,8 +82,6 @@
+ setfsgid(getgid());
+@@ -148,8 +145,6 @@
#endif
- // drop root privileges
+ /* drop root privileges */
- setuid(getuid());
- setuid(getuid());
#ifdef HAVE_SYS_FSUID_H
diff -urN /usr/ports/security/gringotts/files/patch-po-Makefile.in.in security/gringotts/files/patch-po-Makefile.in.in
--- /usr/ports/security/gringotts/files/patch-po-Makefile.in.in 2003-05-14 11:57:40.000000000 +0900
+++ security/gringotts/files/patch-po-Makefile.in.in 1970-01-01 09:00:00.000000000 +0900
@@ -1,11 +0,0 @@
---- po/Makefile.in.in.orig Wed May 14 02:32:06 2003
-+++ po/Makefile.in.in Wed May 14 02:32:22 2003
-@@ -106,7 +106,7 @@
- @catalogs='$(CATALOGS)'; \
- for cat in $$catalogs; do \
- cat=`basename $$cat`; \
-- lang=`echo $$cat | sed 's/\.gmo$$//'`; \
-+ lang=`echo $$cat | sed 's/\.mo$$//'`; \
- dir=$(localedir)/$$lang/LC_MESSAGES; \
- $(mkinstalldirs) $(DESTDIR)$$dir; \
- if test -r $$cat; then \
diff -urN /usr/ports/security/gringotts/files/patch-src-Makefile.in security/gringotts/files/patch-src-Makefile.in
--- /usr/ports/security/gringotts/files/patch-src-Makefile.in 2003-04-12 23:21:21.000000000 +0900
+++ security/gringotts/files/patch-src-Makefile.in 1970-01-01 09:00:00.000000000 +0900
@@ -1,10 +0,0 @@
---- src/Makefile.in.orig Tue Feb 18 22:06:05 2003
-+++ src/Makefile.in Tue Feb 18 22:06:33 2003
-@@ -399,7 +399,6 @@
-
- install-exec-local:
- strip $(DESTDIR)$(bindir)/gringotts
-- chmod u+s $(DESTDIR)$(bindir)/gringotts
- # Tell versions [3.59,3.63) of GNU make to not export all variables.
- # Otherwise a system limit (for SysV at least) may be exceeded.
- .NOEXPORT:
diff -urN /usr/ports/security/gringotts/pkg-plist security/gringotts/pkg-plist
--- /usr/ports/security/gringotts/pkg-plist 2007-10-25 13:51:44.000000000 +0900
+++ security/gringotts/pkg-plist 2009-12-22 04:43:09.000000000 +0900
@@ -1,16 +1,18 @@
bin/gringotts
-share/pixmaps/gringotts.xpm
-share/locale/de/LC_MESSAGES/gringotts.mo
-share/locale/fr/LC_MESSAGES/gringotts.mo
-share/locale/it/LC_MESSAGES/gringotts.mo
-%%GNOMEHIER%%share/gnome/apps/Utilities/gringotts.desktop
-%%GNOMEHIER%%@unexec rmdir -p %D/share/gnome/apps/Utilities 2>/dev/null || true
+share/applications/gringotts.desktop
%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
%%PORTDOCS%%%%DOCSDIR%%/BUGS
-%%PORTDOCS%%%%DOCSDIR%%/COPYING
%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
%%PORTDOCS%%%%DOCSDIR%%/FAQ
%%PORTDOCS%%%%DOCSDIR%%/NEWS
%%PORTDOCS%%%%DOCSDIR%%/README
%%PORTDOCS%%%%DOCSDIR%%/TODO
+share/locale/de/LC_MESSAGES/gringotts.mo
+share/locale/fr/LC_MESSAGES/gringotts.mo
+share/locale/it/LC_MESSAGES/gringotts.mo
+share/locale/pl/LC_MESSAGES/gringotts.mo
+share/locale/ru/LC_MESSAGES/gringotts.mo
+share/pixmaps/gringotts.xpm
+share/pixmaps/gringotts-32.xpm
%%PORTDOCS%%@dirrm %%DOCSDIR%%
+ at dirrmtry share/applications
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list