summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2021-05-09 21:18:11 +0200
committerDavid Seifert <soap@gentoo.org>2021-05-09 21:18:11 +0200
commit892d87363aec7204a63be794507633bb07098e33 (patch)
treef5580980264c163d0353992bb2b4714e0a2f1368 /app-admin
parentdev-libs/cxxtools: compile fix gcc-11 (diff)
downloadgentoo-892d87363aec7204a63be794507633bb07098e33.tar.gz
gentoo-892d87363aec7204a63be794507633bb07098e33.tar.bz2
gentoo-892d87363aec7204a63be794507633bb07098e33.zip
app-admin/socklog: Respect AR/RANLIB
Closes: https://bugs.gentoo.org/779925 Closes: https://bugs.gentoo.org/779928 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: David Seifert <soap@gentoo.org>
Diffstat (limited to 'app-admin')
-rw-r--r--app-admin/socklog/files/socklog-2.1.0-respect-ar-ranlib.patch18
-rw-r--r--app-admin/socklog/socklog-2.1.0.ebuild18
2 files changed, 29 insertions, 7 deletions
diff --git a/app-admin/socklog/files/socklog-2.1.0-respect-ar-ranlib.patch b/app-admin/socklog/files/socklog-2.1.0-respect-ar-ranlib.patch
new file mode 100644
index 000000000000..6aacbd9b80dd
--- /dev/null
+++ b/app-admin/socklog/files/socklog-2.1.0-respect-ar-ranlib.patch
@@ -0,0 +1,18 @@
+--- a/print-ar.sh
++++ b/print-ar.sh
+@@ -1,7 +1,7 @@
+ cat warn-auto.sh
+ echo 'main="$1"; shift'
+ echo 'rm -f "$main"'
+-echo 'ar cr "$main" ${1+"$@"}'
++echo '${AR} cr "$main" ${1+"$@"}'
+ case "`cat systype`" in
+ sunos-5.*) ;;
+ unix_sv*) ;;
+@@ -10,5 +10,5 @@
+ dgux-*) ;;
+ hp-ux-*) ;;
+ sco*) ;;
+- *) echo 'ranlib "$main"' ;;
++ *) echo '${RANLIB} "$main"' ;;
+ esac
diff --git a/app-admin/socklog/socklog-2.1.0.ebuild b/app-admin/socklog/socklog-2.1.0.ebuild
index 1e48d5125737..367d62460e7e 100644
--- a/app-admin/socklog/socklog-2.1.0.ebuild
+++ b/app-admin/socklog/socklog-2.1.0.ebuild
@@ -1,13 +1,14 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=6
+EAPI=7
inherit flag-o-matic toolchain-funcs
DESCRIPTION="Small secure replacement for syslogd with automatic log rotation"
HOMEPAGE="http://smarden.org/socklog/"
SRC_URI="http://smarden.org/socklog/${P}.tar.gz"
+S="${WORKDIR}/admin/${P}/src"
LICENSE="BSD"
SLOT="0"
@@ -16,15 +17,16 @@ IUSE="static"
RDEPEND=">=sys-process/runit-1.4.0"
-PATCHES=( "${FILESDIR}"/${PN}-2.1.0-headers.patch )
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.1.0-headers.patch
+ "${FILESDIR}"/${PN}-2.1.0-respect-ar-ranlib.patch
+)
-S=${WORKDIR}/admin/${P}/src
-
-src_prepare() {
- default
+src_configure() {
use static && append-ldflags -static
echo "$(tc-getCC) ${CFLAGS} ${CPPFLAGS}" > conf-cc || die
echo "$(tc-getCC) ${CFLAGS} ${LDFLAGS}" > conf-ld || die
+ tc-export AR RANLIB
}
src_install() {
@@ -33,6 +35,8 @@ src_install() {
cd .. || die
dodoc package/CHANGES
- dohtml doc/*.html
+ docinto html
+ dodoc doc/*.html
+
doman man/*
}