diff options
author | Justin Lecher <jlec@gentoo.org> | 2016-10-23 22:52:49 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2016-10-23 22:52:57 +0200 |
commit | 67c8fba9a98da19f01e21f6c322d95097bd5aeb7 (patch) | |
tree | ac5308c0933156acdc4f2b31d3496304d50876b8 /net-fs/netatalk/netatalk-3.1.10.ebuild | |
parent | 2111bd461e5d54595a47ec6764293c1bebeb35e4 (diff) | |
download | gentoo-67c8fba9a98da19f01e21f6c322d95097bd5aeb7.tar.gz gentoo-67c8fba9a98da19f01e21f6c322d95097bd5aeb7.tar.xz |
net-fs/netatalk: Properly use REPLACING_VERSIONS
Drop old
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=589486
Package-Manager: portage-2.3.2
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'net-fs/netatalk/netatalk-3.1.10.ebuild')
-rw-r--r-- | net-fs/netatalk/netatalk-3.1.10.ebuild | 73 |
1 files changed, 38 insertions, 35 deletions
diff --git a/net-fs/netatalk/netatalk-3.1.10.ebuild b/net-fs/netatalk/netatalk-3.1.10.ebuild index 9f889a27c1b..245c2f96df7 100644 --- a/net-fs/netatalk/netatalk-3.1.10.ebuild +++ b/net-fs/netatalk/netatalk-3.1.10.ebuild @@ -140,40 +140,43 @@ src_install() { } 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/ + local fle v + for v in ${REPLACING_VERSIONS}; do + if ! version_is_at_least 3 ${v}; 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 - 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 + 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 "" + break + fi + done } |