Mail archive
alpine-devel

[alpine-devel] [PATCH] Some settings changed, and fixed the paths netatalk uses to find it's deamons. Also added additional auth modules and fixed the dependency list.

From: Oliver Loch <grimeton_at_gmx.net>
Date: Sun, 28 Oct 2012 22:16:03 +0100

---
 main/netatalk/APKBUILD | 21 +++++++++++----------
 1 file changed, 11 insertions(+), 10 deletions(-)
diff --git a/main/netatalk/APKBUILD b/main/netatalk/APKBUILD
index 6c160a9..31c4eaf 100644
--- a/main/netatalk/APKBUILD
+++ b/main/netatalk/APKBUILD
_at_@ -7,8 +7,8 @@ pkgdesc="High performance, super stable AFP Fileserver for Macintosh Computers"
 url="http://netatalk.sourceforge.net"
 arch="all"
 license="GPL2"
-depends="dbus libintl libattr readline sqlite-libs dbus-libs avahi-libs avahi libsasl libevent libgssglue heimdal"
-depends_dev="libiconv-dev db-dev dbus-dev readline-dev avahi-dev libdaemon-dev libevent-dev libgssglue-dev heimdal-dev $depends"
+depends="dbus libintl libattr readline sqlite-libs dbus-libs avahi-libs avahi libsasl libevent libgssglue heimdal libgpg-error libgcrypt"
+depends_dev="libiconv-dev db-dev dbus-dev readline-dev avahi-dev libdaemon-dev libevent-dev libgssglue-dev heimdal-dev libgpg-error-dev libgcrypt-dev $depends"
 makedepends="$depends_dev"
 install="$pkgname.pre-install $pkgname.post-install"
 subpackages="$pkgname-dev $pkgname-doc"
_at_@ -36,8 +36,6 @@ build() {
 	cd "$_builddir"
 	./configure \
 	--prefix=/usr \
-	--bindir=/usr/bin \
-	--sbindir=/usr/sbin \
 	--sysconfdir=/etc \
 	--localstatedir=/var \
 	--mandir=/usr/share/man \
_at_@ -47,7 +45,6 @@ build() {
 	--enable-krbV-uam \
 	--enable-overwrite \
 	--disable-bundled-libevent \
-	--enable-fhs \
 	--with-pam=no \
 	--with-kerberos \
 	--with-libevent-header=/usr/include/ \
_at_@ -59,12 +56,16 @@ build() {
 package() {
 	cd "$_builddir"
 	make DESTDIR="$pkgdir" install || return 1
-	[ ! -d "$pkgdir/usr/" ] && mkdir "$pkgdir/usr/"
-	[ ! -d "$pkgdir/etc/netatalk/" ] && mkdir "$pkgdir/etc/netatalk/"
-	[ -d "$pkgdir/sbin/" ] && mv "$pkgdir/sbin/" "$pkgdir/usr/sbin/"
-	[ -d "$pkgdir/bin/" ] && mv "$pkgdir/bin/" "$pkgdir/usr/bin/"
-	[ -d "$pkgdir/lib/" ] && mv "$pkgdir/lib/" "$pkgdir/usr/lib/"
 	[ -f "$pkgdir/etc/afp.conf" ] && mv "$pkgdir/etc/afp.conf" "$pkgdir/etc/netatalk/afp.conf"	
+	[ -h "$pkgdir/usr/lib/netatalk/uams_clrtxt.so" ] && rm "$pkgdir/usr/lib/netatalk/uams_clrtxt.so"
+	[ -h "$pkgdir/usr/lib/netatalk/uams_dhx.so" ] && rm "$pkgdir/usr/lib/netatalk/uams_dhx.so"
+	[ -h "$pkgdir/usr/lib/netatalk/uams_dhx2.so" ] && rm "$pkgdir/usr/lib/netatalk/uams_dhx2.so"
+	_olddir="$(pwd)"
+	cd "$pkgdir/usr/lib/netatalk/"
+	ln -s uams_dhx2_passwd.so uams_dhx2.so
+	ln -s uams_dhx_passwd.so uams_dhx.so
+	ln -s uams_passwd.so uams_clrtxt.so
+	cd "$_olddir"
 
 	install -m755 -D "$srcdir"/$pkgname.initd \
 		"$pkgdir"/etc/init.d/$pkgname || return 1
-- 
1.8.0
---
Unsubscribe:  alpine-devel+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-devel+help_at_lists.alpinelinux.org
---
Received on Sun Oct 28 2012 - 22:16:03 UTC