diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-05 00:00:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-05 00:00:45 +0100 |
commit | b594445f39d99066071d80fc8efeba5c8f72cc35 (patch) | |
tree | 9bf469821b12ac103807e30a6f7751d955648125 /app-admin/authbind/authbind-2.1.3.ebuild | |
parent | 7f3fecbb5b871825fe9632f46659869cab6a3769 (diff) |
gentoo auto-resync : 05:05:2024 - 00:00:45
Diffstat (limited to 'app-admin/authbind/authbind-2.1.3.ebuild')
-rw-r--r-- | app-admin/authbind/authbind-2.1.3.ebuild | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/app-admin/authbind/authbind-2.1.3.ebuild b/app-admin/authbind/authbind-2.1.3.ebuild new file mode 100644 index 000000000000..7df60af86ca9 --- /dev/null +++ b/app-admin/authbind/authbind-2.1.3.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +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" +S="${WORKDIR}/work" + +LICENSE="GPL-2+" +SLOT="0" +KEYWORDS="~amd64" + +BDEPEND="app-alternatives/awk" + +PATCHES=( + "${FILESDIR}/${PN}-2.1.2-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 +} |