2016-09-11 22:24:51 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, wrapGAppsHook, gtk2, gnome2, gnome3,
|
2018-10-12 23:56:15 +01:00
|
|
|
libstartup_notification, libgtop, perlPackages,
|
2018-07-21 01:44:44 +01:00
|
|
|
autoreconfHook, intltool, docbook_xsl, xauth
|
2014-08-05 22:28:12 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
version = "2.0.12";
|
|
|
|
pname = "libgksu";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "http://people.debian.org/~kov/gksu/${pname}-${version}.tar.gz";
|
2014-08-05 22:28:12 +01:00
|
|
|
sha256 = "1brz9j3nf7l2gd3a5grbp0s3nksmlrp6rxmgp5s6gjvxcb1wzy92";
|
|
|
|
};
|
|
|
|
|
2016-06-12 12:20:10 +01:00
|
|
|
nativeBuildInputs = [
|
2018-03-13 22:15:48 +00:00
|
|
|
pkgconfig autoreconfHook intltool docbook_xsl wrapGAppsHook
|
2016-06-12 12:20:10 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
2016-09-11 22:24:51 +01:00
|
|
|
gtk2 gnome2.GConf libstartup_notification
|
2018-10-12 23:56:15 +01:00
|
|
|
gnome3.libgnome-keyring libgtop gnome2.libglade
|
|
|
|
] ++ (with perlPackages; [ perl XMLParser ]);
|
2016-06-12 12:20:10 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2016-08-04 08:44:43 +01:00
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2014-08-05 22:28:12 +01:00
|
|
|
patches = [
|
|
|
|
# Patches from the gentoo ebuild
|
|
|
|
|
|
|
|
# Fix compilation on bsdc
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.0-fbsd.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Fix wrong usage of LDFLAGS, gentoo bug #226837
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.7-libs.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Use po/LINGUAS
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.7-polinguas.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Don't forkpty; gentoo bug #298289
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.12-revert-forkpty.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Make this gmake-3.82 compliant, gentoo bug #333961
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.12-fix-make-3.82.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Do not build test programs that are never executed; also fixes gentoo bug #367397 (underlinking issues).
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.12-notests.patch
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
# Fix automake-1.11.2 compatibility, gentoo bug #397411
|
2018-10-12 23:56:15 +01:00
|
|
|
./libgksu-2.0.12-automake-1.11.2.patch
|
|
|
|
];
|
2014-08-05 22:28:12 +01:00
|
|
|
|
|
|
|
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 10:11:01 +00: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 22:28:12 +01:00
|
|
|
|
|
|
|
touch NEWS README
|
|
|
|
'';
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
intltoolize --force --copy --automake
|
|
|
|
'';
|
|
|
|
|
2018-03-13 22:15:48 +00:00
|
|
|
configureFlags = [
|
|
|
|
"--disable-gtk-doc"
|
|
|
|
];
|
|
|
|
|
2014-08-05 22:28:12 +01:00
|
|
|
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.
|
|
|
|
'';
|
2018-12-01 17:32:32 +00:00
|
|
|
homepage = https://www.nongnu.org/gksu/;
|
2014-08-05 22:28:12 +01:00
|
|
|
license = stdenv.lib.licenses.lgpl2;
|
|
|
|
maintainers = [ stdenv.lib.maintainers.romildo ];
|
2016-08-02 18:50:55 +01:00
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2014-08-05 22:28:12 +01:00
|
|
|
};
|
|
|
|
}
|