--- /dev/null
+--- a/login/Makefile.am
++++ b/login/Makefile.am
+@@ -2,5 +2,5 @@
+ ilogin_SOURCES = login.c
+ ilogin_CFLAGS = -Wall
+
+-install-data-hook:
+- chmod 500 $(sbindir)/ilogin
++install-exec-hook:
++ chmod 500 $(DESTDIR)$(sbindir)/ilogin
+--- a/su/Makefile.am
++++ b/su/Makefile.am
+@@ -4,5 +4,5 @@
+
+ INCLUDES = -I../sud
+
+-install-data-hook:
+- chmod 555 $(bindir)/suz
++install-exec-hook:
++ chmod 555 $(DESTDIR)$(bindir)/suz
+--- a/sud/Makefile.am
++++ b/sud/Makefile.am
+@@ -7,5 +7,5 @@
+ #INCLUDES = -I..
+ CLEANFILES = conf_lexer.c conf_parser.h conf_parser.c
+
+-install-data-hook:
+- chmod 500 $(sbindir)/sud
++install-exec-hook:
++ chmod 500 $(DESTDIR)$(sbindir)/sud
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-EAPI=2
+EAPI=6
-inherit eutils flag-o-matic
+inherit autotools flag-o-matic
DESCRIPTION="A daemon to execute processes with special privileges in a nosuid environment"
HOMEPAGE="http://s0ftpj.org/projects/sud/index.htm"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
+PATCHES=( "${FILESDIR}"/${PN}-1.3-fix-build-system.patch )
+
src_prepare() {
- sed -i -e \
- 's/install-data-hook:$/& install-exec/' \
- -e \
- 's:chmod 500 $(sbindir)/ilogin:chmod 500 $(DESTDIR)$(sbindir)/ilogin:' \
- "${S}"/login/Makefile.in || die "sed failed."
- sed -i -e \
- 's/install-data-hook:$/& install-exec/' \
- -e \
- 's:chmod 555 $(bindir)/suz:chmod 500 $(DESTDIR)$(bindir)/suz:' \
- "${S}"/su/Makefile.in || die "sed failed."
- sed -i -e \
- 's/install-data-hook:$/& install-exec/' \
- -e \
- 's:chmod 500 $(sbindir)/sud:chmod 500 $(DESTDIR)$(sbindir)/sud:' \
- "${S}"/sud/Makefile.in || die "sed failed."
+ default
+ eautoreconf
}
src_configure() {
- append-flags -D_GNU_SOURCE
- default_src_configure
+ append-cppflags -D_GNU_SOURCE
+ default
}
src_install() {
- emake DESTDIR="${D}" install || die "emake install failed."
- dodoc AUTHORS ChangeLog* README NEWS TODO
+ default
+
doman ilogin.1 sud.1 suz.1
insinto /etc
doins miscs/sud.conf*