diff options
author | Justin Lecher <jlec@gentoo.org> | 2013-04-05 16:22:50 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2013-04-05 16:22:50 +0000 |
commit | f10c4b9a66d07b2ea758bee2ecb200aa46db3c7f (patch) | |
tree | f552837eee19376dc53767401c5eacb318d3d1bb /net-fs/netatalk | |
parent | Add readline dep. (diff) | |
download | historical-f10c4b9a66d07b2ea758bee2ecb200aa46db3c7f.tar.gz historical-f10c4b9a66d07b2ea758bee2ecb200aa46db3c7f.tar.bz2 historical-f10c4b9a66d07b2ea758bee2ecb200aa46db3c7f.zip |
net-fs/netatalk: Version Bump, handle configure options correctly
Package-Manager: portage-2.2.0_alpha171/cvs/Linux x86_64
Manifest-Sign-Key: 0x8009D6F070EB7916
Diffstat (limited to 'net-fs/netatalk')
-rw-r--r-- | net-fs/netatalk/ChangeLog | 9 | ||||
-rw-r--r-- | net-fs/netatalk/Manifest | 15 | ||||
-rw-r--r-- | net-fs/netatalk/metadata.xml | 3 | ||||
-rw-r--r-- | net-fs/netatalk/netatalk-3.0.2-r3.ebuild | 149 | ||||
-rw-r--r-- | net-fs/netatalk/netatalk-3.0.3.ebuild | 167 |
5 files changed, 336 insertions, 7 deletions
diff --git a/net-fs/netatalk/ChangeLog b/net-fs/netatalk/ChangeLog index 7608da47887d..9cf463743907 100644 --- a/net-fs/netatalk/ChangeLog +++ b/net-fs/netatalk/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-fs/netatalk # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.93 2013/02/05 07:45:01 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/ChangeLog,v 1.94 2013/04/05 16:22:49 jlec Exp $ + +*netatalk-3.0.3 (05 Apr 2013) +*netatalk-3.0.2-r3 (05 Apr 2013) + + 05 Apr 2013; Justin Lecher <jlec@gentoo.org> +netatalk-3.0.2-r3.ebuild, + +netatalk-3.0.3.ebuild, metadata.xml: + Version Bump, handle configure options correctly *netatalk-3.0.2-r2 (05 Feb 2013) diff --git a/net-fs/netatalk/Manifest b/net-fs/netatalk/Manifest index cbe1fafc955c..99d9a7fb79d6 100644 --- a/net-fs/netatalk/Manifest +++ b/net-fs/netatalk/Manifest @@ -1,5 +1,5 @@ -----BEGIN PGP SIGNED MESSAGE----- -Hash: SHA256 +Hash: SHA512 AUX afpd.init.3 549 SHA256 3583467680406b993602c90e83a7faf8d1ba8612944e99eb66dd3e9a00437799 SHA512 6f2cec35054bd9251821e41a02f1fa941bac7d5173be13eda7d02f407e194cc825473ff39850691a6759968b158a5b0058b34baed2058235eaa1d51984a689bd WHIRLPOOL 42c96babe4405a713c1a712e3ee1a6cd483634a5626f9be586a4a3f69310a54e6f7b4e5853512b43b04ab16a54d854a7be865663ced83fee0f94362edd8fa1d6 AUX atalk_service.init.2 327 SHA256 1592e048af693af36a1c010779eb98f356774ad92c4a41a6199edfe88603c9a2 SHA512 ee96b0ed113760ba44a4f6217fc04d90a77f3f3aa884cbb9cfedeaa821f0a936523bd3937b3bbbaf34e63f9aae1b7490e09053298abc301714b75aa79e54fa82 WHIRLPOOL fcd8d63af0df3b009b16d3f0dba987b1a4709bc9f7befcde2374df0e7672a4decdf2dcc7dce974599ec80e1c4194c34c6ab1310b5a713a169821db8f34054965 @@ -15,19 +15,22 @@ DIST netatalk-2.2.1.tar.bz2 1227602 SHA256 3ab81c6335f8c33fd01ae599459a26c8cfe3b DIST netatalk-2.2.3.tar.bz2 1288642 SHA256 b088e6cc6237f7ad98af65812a74bcc830a2d4aebeea71cfd932ace8ef93132c SHA512 ecadbc6129efc8f7518b6221beeadf1623e934fe23889a993e57275e9d1417359cbcd6cbb552985c7b54f3fc5b3dc959ed006ab03a5b2c5ab5fa098c3ec2b596 WHIRLPOOL d3bd1b5f3154dc5497d5f68ef157ffb46d096d8bd95204989a142b4cde4fdb134469d1cea1cdb9545a8497fecd6b13198f3862fe9d2e17516d8d52bef2b66749 DIST netatalk-3.0.1.tar.bz2 1633970 SHA256 31f2a30d8eac0de5a8b8beddbd7b3418ba898a0d60b4d20c3ed6b568e91cc203 SHA512 97b0f02716052b1faaa064ec7feb681fd44ac8283c254aa88884d82f1858b5cf015f2a7eec1fbb630c582000064e2a8c9c1329274ce844b5e5a442814386e075 WHIRLPOOL ddf5cbaf936cab13555bbc0cf971ad9d97a7f67bb138fc5955fca47ddc482968e43b791d1556334b9b291be23ae1f4a01f93f7e4b723617c8b22a37c9f307d6a DIST netatalk-3.0.2.tar.bz2 1643396 SHA256 0e414e1afae9726f4819aaefd15bd27658fcdf38800b468cbddc5de4247141fe SHA512 6d5e149e6c1fda885fa5e7a927377f2b5248e0bb5695c76f053ea374f001ff6b9c11b4e4962d39843c5d9a62ebac61ed33ee5787e7874a9b15d32eca3edddb9f WHIRLPOOL e1060280251fe4bae621a88ae005b5dda2ed49f737c204254ed74c9739d2c56348cba6e7c7ebe65e78748b552f85c96d1c90294ba52f2d2f440ef981f0730d8e +DIST netatalk-3.0.3.tar.bz2 1656819 SHA256 e15e30d54ea720dce527555cd1278947ecc22b4dbde051929204e3818cdd1325 SHA512 634de3edb9f452ada07c059e1f94fa9594668da5ea576afef7b331529d6a5126f4f94e81efaca6f84b4f533ce1691bec9f4438afd96fbdbc57726a84f2465672 WHIRLPOOL 62ce2a9263cef575041aefdf8541d2655dd7c2b7498538e273da7c7bd99dc468c29b2a3b75fc80ea2aa1e8dd013f11404b205d60e90f511d0f075b88da6b37e2 DIST netatalk-3.0.tar.bz2 1628026 SHA256 b7babbc986dbd6f0fca55103637de6947892b29287cb7cfbbaaa77dea3ead54c SHA512 690fa21a72ef1ef119b930cf9aba160dff6e780a7e9aa4668f962d232d00abc21b8b256c1eef99e2a977ddd286fed7405c6b704da27036a4fa89397cf9ad446b WHIRLPOOL ac81c1cc1ec06e5c13dbbf7a688b946f79e846cfa587a187ab088569ed9bbd887f206c4d10016bd86f685420712382ed8f47ce189ee392ab03e797df04651c36 EBUILD netatalk-2.2.1-r3.ebuild 4396 SHA256 e53f3bc0245aa1b015604b5df6ae3cfbd2e2d7e9d592e86ebaf58929b22c4684 SHA512 5a566c82f06c169c156f63032a3c58b8e53330cc1ec9f6f04a2a79ea5323a5504ba6937b8ae842b2b6fd10a38a89488207aea9dbc5d03a6b821b5ffc669c090e WHIRLPOOL 655610bfd01fc7f472ef818bf5a2389019c922de37db8c67016514be2276db9715ecf1b44423d11fd4599eb3f193b417c557431ee6ca4181bb6cdcf8e5cdb4ea EBUILD netatalk-2.2.3.ebuild 4413 SHA256 654ffdde5ae066afc988a533e84564d6f6f06133ddb5dd3385a7642861e8b85d SHA512 fba567c20349cf718a8be02a7051adbd634104782e6536a6fd37e5a8d3393aff55fe0d550b9e419a91f9144632b34eab13f25f5624ff919d3fc948821ee68a54 WHIRLPOOL 954a6886991c535a1d0ea0a13aa6bc4ffd59bf70db2557f2178ef31ae2e1fc411bd736ebef3886eddec3f65de398bec45e7b5ceffbc0333449337d39a12d455c EBUILD netatalk-3.0.1.ebuild 3877 SHA256 9b5949c5dfe8542489267cf93cb7c2ff7215520f9c601089543a4758fc6f0f6e SHA512 a857952d4a9096f047e05ab321068a2c38a0bd26779c087007f79bfc8d60ec51292dda43d1dce52ecc56d3a6751e2c62e8acdd9f188db90174b726735578041d WHIRLPOOL 8cbef038f08eefceb27b4075eb0997a63d35c37ce884e250c703186d0116e8c9fab59f77a67a70c0fd28b1b1cd4dc26e0324a08f17b14466159173d81d86a4ea EBUILD netatalk-3.0.2-r2.ebuild 4079 SHA256 cc5bc91f1fc58dae2ed04eb2e97903f2f68fe7cd508232a1cf4a89f520ab25a4 SHA512 f67bf9ec377577485da4b94806a0e8826af34ee45692462e1eb446daa99cddb6679c8667958266787a39df48fa87937bdad8b7543b171989cde2da35f20177e1 WHIRLPOOL fc94ee3cb485eac1d7b29a00b7026409abc0e7273bca0d560d6a79ab62201cd2c3e6a2478efd9fcd6c254a48b320b04aa7866e4395f332603a6f34fc814b638c +EBUILD netatalk-3.0.2-r3.ebuild 4089 SHA256 3234e9e12f496cce49fbed3cb321ed639ad6653e0a38c94a4d2fc4464f8d6b37 SHA512 3cb35b4b1e386eb95465ee898547f3f5762a0766f2bb5677713224b90af709e5eb6436f7978bb9de1dd8a8dfb675b74b192d61c4163126f9ab0075736a7648ff WHIRLPOOL 142b70014252490f2331cc9edef4d4ac3494c79d455268cf415ed1e9fbbf75f3864202f462adbb3af9f157ed8f992bb4cf47c0e92a1ca90b847be76b2df40621 EBUILD netatalk-3.0.2.ebuild 3884 SHA256 94fa72acffdf5298d4260e6372a0b3d82568136a349d6f58da4278c14083762b SHA512 1b8b9103d2ab4e49e142210a61d6a3857f9f7eae8d6f8158f057d1adb6bc2698bf95bf15df436e7b1365a9ec12b2a02ac0dbb41a07e254921b7b20e78189c90b WHIRLPOOL c0e7abbd91f6c72eb11b631058ead86ab999766e3585fe4062c7ca079511824d30973f6dea7d284820a02e9b4fdfdf60aac453cb3a95d951c4a32a8c83e17bbd +EBUILD netatalk-3.0.3.ebuild 4446 SHA256 81e14ea35f70490b4787efbbf399a72889185ce30042bb482ad23ccdccc41041 SHA512 f004051c122f1612667b66d1187c6e4c1a0e7a6abf217de9bde946acf306db7e1ca6cf3a59c01f7c2fee841a5d56a1875ff1e8954b2ff91d55db2381b77520ed WHIRLPOOL 5a1f0a8f0500e75cf9ab726d44be88eed9ce2687409c285db8934baf12db3d89f5cf171c390cb281d9d82de834cdde3ca497755bf0db0911115a71484ad2a951 EBUILD netatalk-3.0.ebuild 3738 SHA256 2c6f60bd2f9394ba2c4d09c1c8ee0940400d64f52cc5d0da96a887907b14f3a0 SHA512 fd3aff9596e6334841dcfbb6141027c98a413b442722f6e54f5ccfe4aa173ab65a50e1b98dfff13c2f22b4b3f1d67849db59e2b72c472d2fd75771cda10fb539 WHIRLPOOL 8e9a21548cd87b46ba7a6f9b9e59cb975f5e99aca6d9d9aa67cf1647fdf9a170d871d1f71ae2587738934db3e0f4e808b06caf119851029d46e871a3f17edfe8 -MISC ChangeLog 15789 SHA256 2d681225a96a4f08ef7e31b233085a2ea2075805298a0ccfde02c8d04b0940fe SHA512 4d0a26f64a41b8837a65ee9c80d78482b483ec3ea44b2ff1b24170f9acf40d2c5c7223d66f3ce6f61fdfa66ebc2924b714d52e5f6afb0f04aea4c7a1f2e5ae83 WHIRLPOOL f078376e61077b71f58cd99246118433789cd5f7db5a475dfe5b43ce42c15d721fb4962ebfc0132f26d6b2b1ed0bb770881833aa36ddc44b58b7d985d319c4b0 -MISC metadata.xml 1108 SHA256 408d2fe9ff728ef1ae9d4ef925be15bf1be623b3777e4656bb7b431124776aee SHA512 be215b445a3fb581a9c5d5e7c62ac6b0b4de0e71931e3cb899a72f69d4713fc844a7c55fb08a4a2a8a7e46d08659a5f2bb010cdbf24d61618469b4c6ff9b9bf0 WHIRLPOOL 85fc7d3e9d9fab6ab2ccf99afe711e54c5f82c2aeeee45bf4b9b3995e3839627da8cc065c7e7abdff247ea4aab11c3a345b40a3a094e5f167c90e6e2e1f6a34e +MISC ChangeLog 16019 SHA256 91dcae2695dfae3e87421ae91d612a7d6ce73f1742e715dddc0eb135183ef794 SHA512 f0ab3a76b20e4c788599abe37c215c529a1c62dbdbcaa069e17feafd33314c65457b15b81b46cc7b7e1c5da0ecbeaab2d02b40691444407bcea8d5d6adea285d WHIRLPOOL cd2354efab3811b5edd6e9d18570e027d1aea60144078f11d06f6865a0e055e0c5509930d3f9f2b82ae955a063d59c9a35ff82ad0cbc3e8b49d16134d8ea3700 +MISC metadata.xml 1169 SHA256 613ed65fadd393571a5e56d860b2664233fc0c744184dd5ee61fad579c08d9ef SHA512 de1490f028008001f0882f0d6e51b632e1b5a132be30daf82a2138625a4f6fd3821a22365f8afbd60cfc1bf644258fb6fb9944f1bf48650935fa1ce11d64d734 WHIRLPOOL 2f37d1940733a9d875a222731394f9dece2df9880be7ae65acc7e900f3d056f758666b1417d205bb06f89204efd3cee89f3b08b6527e7d24da8a9dadd3e5dedc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -iEYEAREIAAYFAlEQuH8ACgkQgAnW8HDreRYaoQCgwwGpPjR6kbGms0aj6vXly+sv -OGwAn2mmuI5qujveTuCfa4GCoRmyGG1V -=t++m +iEYEAREKAAYFAlFe+loACgkQgAnW8HDreRa60gCdFih9Ikoi4O+ZsNYo+oPVLgpy +mBgAn0KkPzBzHcl8PVhEyXbhEDyGbe45 +=CEq4 -----END PGP SIGNATURE----- diff --git a/net-fs/netatalk/metadata.xml b/net-fs/netatalk/metadata.xml index 3d3fd3cc9ba9..ac8debc4ec50 100644 --- a/net-fs/netatalk/metadata.xml +++ b/net-fs/netatalk/metadata.xml @@ -27,6 +27,9 @@ <flag name="shadow"> Add shadow support </flag> + <flag name="utils"> + Install afpstats script + </flag> <flag name="ssl"> Use <pkg>dev-libs/openssl</pkg> to provide DHX User Access Modules. These are not used with most recent versions of OS X diff --git a/net-fs/netatalk/netatalk-3.0.2-r3.ebuild b/net-fs/netatalk/netatalk-3.0.2-r3.ebuild new file mode 100644 index 000000000000..da9e7281dc81 --- /dev/null +++ b/net-fs/netatalk/netatalk-3.0.2-r3.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-3.0.2-r3.ebuild,v 1.1 2013/04/05 16:22:49 jlec Exp $ + +EAPI=4 + +AUTOTOOLS_AUTORECONF=yes + +inherit autotools-utils flag-o-matic multilib pam systemd + +DESCRIPTION="Open Source AFP server" +HOMEPAGE="http://netatalk.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="acl avahi cracklib debug pgp kerberos ldap pam quota samba +shadow ssl static-libs tcpd" + +RDEPEND=" + !app-editors/yudit + dev-libs/libevent + dev-libs/libgcrypt + sys-apps/coreutils + >=sys-libs/db-4.2.52 + acl? ( + sys-apps/attr + sys-apps/acl + ) + avahi? ( net-dns/avahi[dbus] ) + cracklib? ( sys-libs/cracklib ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + " +DEPEND="${RDEPEND}" +PDEPEND="sys-apps/openrc" + +RESTRICT="test" + +REQUIRED_USE="ldap? ( acl )" + +DOCS=( CONTRIBUTORS NEWS VERSION AUTHORS doc/DEVELOPER ) + +PATCHES=( "${FILESDIR}"/${PN}-3.0.1-gentoo.patch ) + +src_configure() { + local myeconfargs=() + + append-flags -fno-strict-aliasing + + if use acl; then + myeconfargs+=( --with-acls $(use_with ldap) ) + else + myeconfargs+=( --without-acls --without-ldap ) + fi + + # Ignore --with-init-style=gentoo, we install the init.d by hand and we avoid having + # to sed the Makefiles to not do rc-update. + # TODO: + # systemd : --with-init-style=systemd + myeconfargs+=( + --disable-silent-rules + $(use_enable avahi zeroconf) + $(use_enable debug) + $(use_enable debug debugging) + $(use_enable pgp pgp-uam) + $(use_enable kerberos) + $(use_enable kerberos krbV-uam) + $(use_enable quota) + $(use_enable tcpd tcp-wrappers) + $(use_with cracklib) + $(use_with pam) + $(use_with samba smbsharemodes) + $(use_with shadow) + $(use_with ssl ssl-dir) + --enable-overwrite + --disable-krb4-uam + --disable-afs + --with-libevent-header=/usr/include + --with-libevent-lib=/usr/$(get_libdir) + --with-bdb=/usr + --with-uams-path=/usr/$(get_libdir)/${PN} + --disable-silent-rules + --with-init-style=gentoo + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if use avahi; then + sed -i -e '/avahi-daemon/s:use:need:g' "${D}"/etc/init.d/${PN} || die + else + sed -i -e '/avahi-daemon/d' "${D}"/etc/init.d/${PN} || die + fi + + # The pamd file isn't what we need, use pamd_mimic_system + rm -rf "${D}/etc/pam.d" + pamd_mimic_system netatalk auth account password session + + sed \ + -e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \ + distrib/initscripts/service.systemd.tmpl \ + > "${T}"/service.systemd || die + systemd_newunit "${T}"/service.systemd ${PN}.service +} + +pkg_postinst() { + local fle + if [[ ${REPLACING_VERSIONS} < 3 ]]; then + for fle in afp_signature.conf afp_voluuid.conf; do + if [[ -f "${ROOT}"etc/netatalk/${fle} ]]; then + if [[ ! -f "${ROOT}"var/lib/netatalk/${fle} ]]; then + mv \ + "${ROOT}"etc/netatalk/${fle} \ + "${ROOT}"var/lib/netatalk/ + fi + fi + done + + echo "" + elog "Starting from version 3.0 only uses a single init script again" + elog "Please update your runlevels accordingly" + echo "" + elog "Dependencies should be resolved automatically depending on settings" + elog "but please report issues with this on https://bugs.gentoo.org/ if" + elog "you find any." + echo "" + elog "Following config files are obsolete now:" + elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf" + elog "in favour of" + elog "/etc/afp.conf" + echo "" + elog "Please convert your existing configs before you restart your daemon" + echo "" + elog "The new AppleDouble default backend is appledouble = ea" + elog "Existing entries will be updated on access, but can do an offline" + elog "conversion with" + elog "dbd -ruve /path/to/Volume" + echo "" + elog "For general notes on the upgrade, please visit" + elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html" + echo "" + fi +} diff --git a/net-fs/netatalk/netatalk-3.0.3.ebuild b/net-fs/netatalk/netatalk-3.0.3.ebuild new file mode 100644 index 000000000000..37113bff9cba --- /dev/null +++ b/net-fs/netatalk/netatalk-3.0.3.ebuild @@ -0,0 +1,167 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-fs/netatalk/netatalk-3.0.3.ebuild,v 1.1 2013/04/05 16:22:49 jlec Exp $ + +EAPI=5 + +PYTHON_COMPAT=( python2_{6,7} ) + +AUTOTOOLS_AUTORECONF=yes + +inherit autotools-utils flag-o-matic multilib pam python-r1 systemd + +DESCRIPTION="Open Source AFP server" +HOMEPAGE="http://netatalk.sourceforge.net/" +SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${PV}/${P}.tar.bz2" + +LICENSE="GPL-2 BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd" +IUSE="acl avahi cracklib debug pgp kerberos ldap pam quota samba +shadow ssl static-libs tcpd +utils" + +DEPEND=" + !app-editors/yudit + dev-libs/libevent + dev-libs/libgcrypt + sys-apps/coreutils + >=sys-libs/db-4.2.52 + acl? ( + sys-apps/attr + sys-apps/acl + ) + avahi? ( net-dns/avahi[dbus] ) + cracklib? ( sys-libs/cracklib ) + kerberos? ( virtual/krb5 ) + ldap? ( net-nds/openldap ) + pam? ( virtual/pam ) + ssl? ( dev-libs/openssl ) + tcpd? ( sys-apps/tcp-wrappers ) + " +RDEPEND="${DEPEND} + utils? ( + dev-lang/perl + dev-python/dbus-python[${PYTHON_USEDEP}] + ${PYTHON_DEPS} + )" +PDEPEND="sys-apps/openrc" + +RESTRICT="test" + +REQUIRED_USE="ldap? ( acl )" + +DOCS=( CONTRIBUTORS NEWS VERSION AUTHORS doc/DEVELOPER ) + +PATCHES=( "${FILESDIR}"/${PN}-3.0.1-gentoo.patch ) + +src_prepare() { + if ! use utils; then + sed \ + -e "s:shell_utils::g" \ + -i contrib/Makefile.am || die + fi + autotools-utils_src_prepare +} + +src_configure() { + local myeconfargs=() + + append-flags -fno-strict-aliasing + + if use acl; then + myeconfargs+=( --with-acls $(use_with ldap) ) + else + myeconfargs+=( --without-acls --without-ldap ) + fi + + # Ignore --with-init-style=gentoo, we install the init.d by hand and we avoid having + # to sed the Makefiles to not do rc-update. + # TODO: + # systemd : --with-init-style=systemd + myeconfargs+=( + --disable-silent-rules + $(use_enable avahi zeroconf) + $(use_enable debug) + $(use_enable debug debugging) + $(use_enable pgp pgp-uam) + $(use_enable kerberos) + $(use_enable kerberos krbV-uam) + $(use_enable quota) + $(use_enable tcpd tcp-wrappers) + $(use_with cracklib) + $(use_with pam) + $(use_with samba smbsharemodes) + $(use_with shadow) + $(use_with ssl ssl-dir) + --enable-overwrite + --disable-krb4-uam + --disable-afs + --with-libevent-header=/usr/include + --with-libevent-lib=/usr/$(get_libdir) + --with-bdb=/usr + --with-uams-path=/usr/$(get_libdir)/${PN} + --disable-silent-rules + --with-init-style=gentoo + ) + autotools-utils_src_configure +} + +src_install() { + autotools-utils_src_install + + if use avahi; then + sed -i -e '/avahi-daemon/s:use:need:g' "${D}"/etc/init.d/${PN} || die + else + sed -i -e '/avahi-daemon/d' "${D}"/etc/init.d/${PN} || die + fi + + # The pamd file isn't what we need, use pamd_mimic_system + rm -rf "${D}/etc/pam.d" + pamd_mimic_system netatalk auth account password session + + sed \ + -e "s|:SBINDIR:|${EPREFIX}/usr/sbin|g" \ + distrib/initscripts/service.systemd.tmpl \ + > "${T}"/service.systemd || die + systemd_newunit "${T}"/service.systemd ${PN}.service + + use utils && python_foreach_impl python_doscript contrib/shell_utils/afpstats +} + +pkg_postinst() { + local fle + if [[ ${REPLACING_VERSIONS} < 3 ]]; then + for fle in afp_signature.conf afp_voluuid.conf; do + if [[ -f "${ROOT}"etc/netatalk/${fle} ]]; then + if [[ ! -f "${ROOT}"var/lib/netatalk/${fle} ]]; then + mv \ + "${ROOT}"etc/netatalk/${fle} \ + "${ROOT}"var/lib/netatalk/ + fi + fi + done + + echo "" + elog "Starting from version 3.0 only uses a single init script again" + elog "Please update your runlevels accordingly" + echo "" + elog "Dependencies should be resolved automatically depending on settings" + elog "but please report issues with this on https://bugs.gentoo.org/ if" + elog "you find any." + echo "" + elog "Following config files are obsolete now:" + elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf" + elog "in favour of" + elog "/etc/afp.conf" + echo "" + elog "Please convert your existing configs before you restart your daemon" + echo "" + elog "The new AppleDouble default backend is appledouble = ea" + elog "Existing entries will be updated on access, but can do an offline" + elog "conversion with" + elog "dbd -ruve /path/to/Volume" + echo "" + elog "For general notes on the upgrade, please visit" + elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html" + echo "" + fi +} |