summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-03-23 04:20:51 +0000
committerSam James <sam@gentoo.org>2021-03-23 04:21:06 +0000
commit9bb0d1f17bb1ee8185b53d8be1a010e14fb89572 (patch)
treec16785d616fee75b33ab87cd5bb5586a2401b1e9 /app-admin/authbind/authbind-2.1.2.ebuild
parentapp-admin/authbind: port to EAPI 7 (diff)
downloadgentoo-9bb0d1f17bb1ee8185b53d8be1a010e14fb89572.tar.gz
gentoo-9bb0d1f17bb1ee8185b53d8be1a010e14fb89572.tar.bz2
gentoo-9bb0d1f17bb1ee8185b53d8be1a010e14fb89572.zip
app-admin/authbind: add 2.1.2
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-admin/authbind/authbind-2.1.2.ebuild')
-rw-r--r--app-admin/authbind/authbind-2.1.2.ebuild52
1 files changed, 52 insertions, 0 deletions
diff --git a/app-admin/authbind/authbind-2.1.2.ebuild b/app-admin/authbind/authbind-2.1.2.ebuild
new file mode 100644
index 00000000000..5c54176d277
--- /dev/null
+++ b/app-admin/authbind/authbind-2.1.2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit flag-o-matic toolchain-funcs
+
+DESCRIPTION="Bind sockets to privileged ports without root"
+HOMEPAGE="https://www.chiark.greenend.org.uk/ucgi/~ian/git/authbind.git/"
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.tar.gz"
+
+LICENSE="GPL-2+"
+SLOT="0"
+KEYWORDS="~amd64"
+
+BDEPEND="virtual/awk"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-2.1.1-respect-flags.patch"
+)
+
+src_configure() {
+ tc-export CC LD
+
+ sed -i \
+ -e "s|^prefix=.*|prefix=/usr|" \
+ -e "s|^lib_dir=.*|lib_dir=\$(prefix)/$(get_libdir)|" \
+ -e "s|^libexec_dir=.*|libexec_dir=\$(prefix)/libexec/authbind|" \
+ -e "s|^SHARED_LDFLAGS=.*|SHARED_LDFLAGS=$(raw-ldflags)|" \
+ Makefile || die "sed failed"
+
+ sed -i \
+ -e 's|/usr/lib|/usr/libexec|' \
+ authbind-helper.8 || die "sed failed"
+}
+
+src_install() {
+ dobin authbind
+ doman authbind.1 authbind-helper.8
+
+ local major=$(awk -F= '/MAJOR=/ { print $2 }' Makefile || die)
+ ln -s libauthbind.so.* libauthbind.so.${major} || die
+ dolib.so libauthbind.so*
+
+ exeinto /usr/libexec/authbind
+ exeopts -m4755
+ doexe helper
+
+ keepdir /etc/authbind/by{addr,port,uid}
+
+ dodoc debian/changelog
+}