diff options
author | woodsb02 <woodsb02@FreeBSD.org> | 2018-07-01 23:15:34 +0800 |
---|---|---|
committer | woodsb02 <woodsb02@FreeBSD.org> | 2018-07-01 23:15:34 +0800 |
commit | 65a19b50bdbc90d46592bd80084c0323ecf4ae06 (patch) | |
tree | dc0538ecbec661631ed5c2bac0803640332483a1 /sysutils/gksu | |
parent | b81389243c93418c1e2dec303c937d721406123c (diff) | |
download | freebsd-ports-gnome-65a19b50bdbc90d46592bd80084c0323ecf4ae06.tar.gz freebsd-ports-gnome-65a19b50bdbc90d46592bd80084c0323ecf4ae06.tar.zst freebsd-ports-gnome-65a19b50bdbc90d46592bd80084c0323ecf4ae06.zip |
sysutils/gksu and sysutils/libgksu: Fix gksudo not running command
This fixes an issue where gksudo would successfully authenticate
the user, but fail to run the requested command. This was caused by
gksudo forking a new PTY, meaning that different TTY was used for the
"sudo -v" command and subsequent "sudo -n ..." command. Whilst this used
to work, newer versions of sudo used per TTY authentication caching.
Patch taken from Arch Linux: https://aur.archlinux.org/packages/libgksu/
Also fixed:
- Made Nautilus plugin optional, so gksu can be installed without GNOME
- Added license details, pet portlint
- Tidied patches: move path fixes into port Makefile
Diffstat (limited to 'sysutils/gksu')
-rw-r--r-- | sysutils/gksu/Makefile | 23 | ||||
-rw-r--r-- | sysutils/gksu/pkg-plist | 4 |
2 files changed, 20 insertions, 7 deletions
diff --git a/sysutils/gksu/Makefile b/sysutils/gksu/Makefile index 0afb780aa549..ef87067e29d2 100644 --- a/sysutils/gksu/Makefile +++ b/sysutils/gksu/Makefile @@ -3,25 +3,38 @@ PORTNAME= gksu PORTVERSION= 2.0.2 -PORTREVISION= 6 +PORTREVISION= 7 CATEGORIES= sysutils MASTER_SITES= http://people.debian.org/~kov/gksu/ MAINTAINER= ports@FreeBSD.org COMMENT= Graphical frontend to su -LIB_DEPENDS= libgksu2.so:sysutils/libgksu \ - libnautilus-extension.so:x11-fm/nautilus \ - libgnome-keyring.so:security/libgnome-keyring +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/COPYING + +LIB_DEPENDS= libfontconfig.so:x11-fonts/fontconfig \ + libfreetype.so:print/freetype2 \ + libgksu2.so:sysutils/libgksu \ + libgnome-keyring.so:security/libgnome-keyring \ + libstartup-notification-1.so:x11/startup-notification USES= gettext-tools gmake libtool pathfix pkgconfig -USE_GNOME= gconf2 gnomeprefix gtk20 intlhack +USE_GNOME= cairo gconf2 gdkpixbuf2 gnomeprefix gtk20 intlhack GNU_CONFIGURE= yes USE_LDCONFIG= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib INSTALL_TARGET= install-strip +OPTIONS_DEFINE= NAUTILUS +OPTIONS_DEFAULT=NAUTILUS +OPTIONS_SUB= yes + +NAUTILUS_DESC= Build extension for GNOME file manager +NAUTILUS_CONFIGURE_ENABLE= nautilus-extension +NAUTILUS_LIB_DEPENDS= libnautilus-extension.so:x11-fm/nautilus + post-patch: @${REINPLACE_CMD} -e 's|glib/gkeyfile.h|glib.h|g' \ ${WRKSRC}/nautilus-gksu/libnautilus-gksu.c diff --git a/sysutils/gksu/pkg-plist b/sysutils/gksu/pkg-plist index 5b3dd12b8c30..b222792b0f12 100644 --- a/sysutils/gksu/pkg-plist +++ b/sysutils/gksu/pkg-plist @@ -1,7 +1,7 @@ bin/gksu bin/gksudo -lib/nautilus/extensions-2.0/libnautilus-gksu.so -lib/nautilus/extensions-2.0/libnautilus-gksu.a +%%NAUTILUS%%lib/nautilus/extensions-2.0/libnautilus-gksu.so +%%NAUTILUS%%lib/nautilus/extensions-2.0/libnautilus-gksu.a man/man1/gksu.1.gz man/man1/gksudo.1.gz share/applications/gksu.desktop |