1 # Copyright © 2018 Nick Bowler
2 # License GPLv3+: GNU General Public License version 3 or later.
3 # There is NO WARRANTY, to the extent permitted by law.
12 DESCRIPTION="NIS binding service (ypbind-mt)"
13 HOMEPAGE="https://www.thkukuk.de/nis/nis/ypbind-mt/"
14 SRC_URI="http://www.thkukuk.de/nis/download/$MY_PN/$MY_P.tar.bz2"
18 KEYWORDS="~amd64 ~x86"
21 LIBDEPEND=">=net-libs/libnsl-1:0=
23 systemd? ( sys-apps/systemd:= )"
24 DEPEND="virtual/pkgconfig
25 nls? ( sys-devel/gettext )
27 RDEPEND="net-nds/yp-tools
31 PATCHES=("$FILESDIR/$P-fix-systemd-configuration.patch"
32 "$FILESDIR/$PN-1.38-avoid-autopoint.patch"
33 "$FILESDIR/$PN-1.38-flexible-bindingdir.patch")
44 local pidfile=${EPREFIX%/}/run/$PN.pid
45 local bindingdir=${EPREFIX%/}/var/yp/binding
46 local my_cppflags=("-D_YPBIND_PIDFILE=\\\"$pidfile\\\""
47 "-DBINDINGDIR=\\\"$bindingdir\\\"")
49 sed -f - "$FILESDIR/ypbind.initd" >ypbind.initd <<EOF || die
54 local myconf=($(use_enable nls) $(use_with systemd))
55 econf CPPFLAGS="${my_cppflags[*]}" "${myconf[@]}"
62 newinitd ypbind.initd ypbind