2016-09-11 23:24:51 +02:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wrapGAppsHook, gtk2, gnome2, gnome3,
|
2016-01-18 00:04:40 +01:00
|
|
|
libstartup_notification, libgtop, perl, perlXMLParser,
|
2018-02-25 03:23:58 +01:00
|
|
|
autoreconfHook, intltool, gtk-doc, docbook_xsl, xauth, sudo
|
2014-08-05 23:28:12 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0.12";
|
|
|
|
pname = "libgksu";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://people.debian.org/~kov/gksu/${name}.tar.gz";
|
|
|
|
sha256 = "1brz9j3nf7l2gd3a5grbp0s3nksmlrp6rxmgp5s6gjvxcb1wzy92";
|
|
|
|
};
|
|
|
|
|
2016-06-12 13:20:10 +02:00
|
|
|
nativeBuildInputs = [
|
2018-02-25 03:23:58 +01:00
|
|
|
pkgconfig autoreconfHook intltool gtk-doc docbook_xsl wrapGAppsHook
|
2016-06-12 13:20:10 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-09-11 23:24:51 +02:00
|
|
|
gtk2 gnome2.GConf libstartup_notification
|
2018-02-25 03:23:58 +01:00
|
|
|
gnome3.libgnome-keyring libgtop gnome2.libglade perl perlXMLParser
|
2016-06-12 13:20:10 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-04 09:44:43 +02:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2014-08-05 23:28:12 +02:00
|
|
|
patches = [
|
|
|
|
# Patches from the gentoo ebuild
|
|
|
|
|
|
|
|
# Fix compilation on bsdc
|
|
|
|
./libgksu-2.0.0-fbsd.patch
|
|
|
|
|
|
|
|
# Fix wrong usage of LDFLAGS, gentoo bug #226837
|
|
|
|
./libgksu-2.0.7-libs.patch
|
|
|
|
|
|
|
|
# Use po/LINGUAS
|
|
|
|
./libgksu-2.0.7-polinguas.patch
|
|
|
|
|
|
|
|
# Don't forkpty; gentoo bug #298289
|
|
|
|
./libgksu-2.0.12-revert-forkpty.patch
|
|
|
|
|
|
|
|
# Make this gmake-3.82 compliant, gentoo bug #333961
|
|
|
|
./libgksu-2.0.12-fix-make-3.82.patch
|
|
|
|
|
|
|
|
# Do not build test programs that are never executed; also fixes gentoo bug #367397 (underlinking issues).
|
|
|
|
./libgksu-2.0.12-notests.patch
|
|
|
|
|
|
|
|
# Fix automake-1.11.2 compatibility, gentoo bug #397411
|
|
|
|
./libgksu-2.0.12-automake-1.11.2.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# gentoo bug #467026
|
|
|
|
sed -i -e 's:AM_CONFIG_HEADER:AC_CONFIG_HEADERS:' configure.ac
|
|
|
|
|
|
|
|
# Fix some binary paths
|
|
|
|
sed -i -e 's|/usr/bin/xauth|${xauth}/bin/xauth|g' libgksu/gksu-run-helper.c libgksu/libgksu.c
|
2017-01-29 11:11:01 +01:00
|
|
|
sed -i -e 's|/usr/bin/sudo|/run/wrappers/bin/sudo|g' libgksu/libgksu.c
|
|
|
|
sed -i -e 's|/bin/su\([^d]\)|/run/wrappers/bin/su\1|g' libgksu/libgksu.c
|
2014-08-05 23:28:12 +02:00
|
|
|
|
|
|
|
touch NEWS README
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
intltoolize --force --copy --automake
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A library for integration of su into applications";
|
|
|
|
longDescription = ''
|
|
|
|
This library comes from the gksu program. It provides a simple API
|
|
|
|
to use su and sudo in programs that need to execute tasks as other
|
|
|
|
user. It provides X authentication facilities for running
|
|
|
|
programs in an X session.
|
|
|
|
'';
|
2017-08-01 22:03:30 +02:00
|
|
|
homepage = http://www.nongnu.org/gksu/;
|
2014-08-05 23:28:12 +02:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-02 19:50:55 +02:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-08-05 23:28:12 +02:00
|
|
|
};
|
|
|
|
}
|