aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/gksu/Makefile24
-rw-r--r--sysutils/gksu/pkg-plist4
2 files changed, 18 insertions, 10 deletions
diff --git a/sysutils/gksu/Makefile b/sysutils/gksu/Makefile
index a4bb87fad9ea..18ebdee346d2 100644
--- a/sysutils/gksu/Makefile
+++ b/sysutils/gksu/Makefile
@@ -1,13 +1,9 @@
-# New ports collection makefile for: gksu
-# Date created: 2 October 2004
-# Whom: Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
-#
+# Created by: Jesse van den Kieboom <troplosti@orcaweb.cjb.net>
# $FreeBSD$
-#
PORTNAME= gksu
PORTVERSION= 2.0.2
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= sysutils
MASTER_SITES= http://people.debian.org/~kov/gksu/
@@ -15,15 +11,25 @@ MAINTAINER= bsam@FreeBSD.org
COMMENT= Graphical frontend to su
LIB_DEPENDS= gksu2:${PORTSDIR}/sysutils/libgksu \
- nautilus-extension.1:${PORTSDIR}/x11-fm/nautilus \
- gnome-keyring.0:${PORTSDIR}/security/gnome-keyring
+ nautilus-extension:${PORTSDIR}/x11-fm/nautilus \
+ gnome-keyring:${PORTSDIR}/security/gnome-keyring
-USE_GNOME= gtk20 pkgconfig gnomeprefix gnomehack gconf2 intlhack
+USES= pathfix
+USE_PKGCONFIG= build
+USE_GNOME= desktopfileutils gconf2 gnomeprefix gtk20 intlhack
GNU_CONFIGURE= yes
USE_GMAKE= yes
+USE_LDCONFIG= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= gksu.1
+post-patch:
+ @${REINPLACE_CMD} -e 's|glib/gkeyfile.h|glib.h|g' \
+ ${WRKSRC}/nautilus-gksu/libnautilus-gksu.c
+
+post-install:
+ -update-desktop-database
+
.include <bsd.port.mk>
diff --git a/sysutils/gksu/pkg-plist b/sysutils/gksu/pkg-plist
index 1d01a0483a48..3e758731a521 100644
--- a/sysutils/gksu/pkg-plist
+++ b/sysutils/gksu/pkg-plist
@@ -3,10 +3,12 @@ bin/gksudo
lib/nautilus/extensions-2.0/libnautilus-gksu.la
lib/nautilus/extensions-2.0/libnautilus-gksu.so
lib/nautilus/extensions-2.0/libnautilus-gksu.a
+man/man1/gksudo.1
share/applications/gksu.desktop
share/pixmaps/gksu-icon.png
share/pixmaps/gksu-root-terminal.png
share/gksu/gksu-migrate-conf.sh
-man/man1/gksudo.1
@dirrm share/gksu
@dirrmtry share/applications
+@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
+@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true