1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00

- Update to 1.2.10

PR:		142043
Submitted by:	Ports Fury
This commit is contained in:
Martin Wilke 2009-12-29 11:15:11 +00:00
parent e83d16d108
commit 671e005835
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=246848
6 changed files with 49 additions and 72 deletions

View File

@ -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@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
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgnomehier}!=""
USE_GNOME+= gnomehier
PLIST_SUB+= GNOMEHIER=''
.else
PLIST_SUB+= GNOMEHIER='@comment '
.endif
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>

View File

@ -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

View File

@ -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

View File

@ -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 \

View File

@ -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:

View File

@ -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%%
@dirrmtry share/applications