diff options
author | Chris Severance | 2019-01-14 13:08:45 -0500 |
---|---|---|
committer | Chris Severance | 2019-01-14 13:08:45 -0500 |
commit | ebed45064a1bd9b65a773e2ac0ea144b50a950e2 (patch) | |
tree | 3b8cc828f458e97e374f81e2ad02b7166be1b8b7 /PKGBUILD | |
parent | 77a03465c10ab3d7b8cf1bdd380bcf076476851f (diff) | |
download | aur-ebed45064a1bd9b65a773e2ac0ea144b50a950e2.tar.gz |
autu: Update to 1.9.4.r42.ga4a331b7-2 readline update hook
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 90 |
1 files changed, 77 insertions, 13 deletions
@@ -1,20 +1,20 @@ # Maintainer: Chris Severance aur.severach aATt spamgourmet dott com -# From core -# $Id: PKGBUILD 241146 2015-06-21 01:47:41Z eric $ # Contributor: Eric BĂ©langer <eric@archlinux.org> +# TODO: package is not compatible with makepkg -Rfi + set -u _pkgname='inetutils' pkgname="${_pkgname}-git" pkgver=1.9.4.r42.ga4a331b7 -pkgrel=1 +pkgrel=2 _srcdir="${_pkgname}" pkgdesc='A collection of common network programs' arch=('i686' 'x86_64') url='http://www.gnu.org/software/inetutils/' license=('GPL3') #groups=('base') -depends=('pam' 'libcap') +depends=('pam' 'libcap' 'readline') makedepends=('help2man' 'git' 'autoconf') provides=("${_pkgname}=${pkgver%%.r*}") conflicts=("${_pkgname}") @@ -40,9 +40,27 @@ for _src in "${_archsource[@]}"; do source+=("${_archlink//@@@/${_src}}") done unset _src _archlink +md5sums=('SKIP' + 'SKIP' + 'a902f8c38f6db36574b928e41d2d2814' + 'fe181e22d3544456f52e64f3bdf5f291' + 'cda2aa3cd2353120b142fd33b3b4f4df' + '7cea13f4ff7fd170fc4d03ef2698200d' + 'f4d16e649c13db9d47ad3654d1595c83' + 'bf522b381451b3fba8386f3566b37848' + '8083b2fac54a76afb93be31d2f55dc68' + 'fc022f7959011aa2bf27d573bdcdc7dd' + '71b8206f220d28b91aabaf9cb16038f1' + '50c76143eadd3c004f5857d712fa05c4' + '2b7ea36e13178c7a3b3c9b38ac7eb588' + 'bd581fa64b91ded853317334b1489346' + 'ae4539ffbabae314744aea8467125f85' + 'd7e5d8f70b7fc7321ab0e61178829b06' + 'bafd84474b3a0942307571e742dd096f' + 'ab71e7458e8ed2b9d31c48eba5ab4c3a') sha256sums=('SKIP' 'SKIP' - '263489599727020041cdeffe5ec0eae3b17b24e4b6b9f04d8ebda1079b5ff2fb' + '09210d3e7799fe93c712a0540f74ba281c61499a47af53e308ee6c3c3367b4dc' 'f1b9b4e57f484070366444a649f1be151d01d5bc965b9b192c242e4b7cc4beeb' '428367b148033c7fa865e92bdd73b06cb58e6909488649adebf8d2253a022f1f' '6112bcdb595937a8c7940dc158a97fd48b8cce6526a9fb017f347f614b9d6548' @@ -70,14 +88,17 @@ pkgver() { prepare() { set -u cd "${_srcdir}" - ln -s '../gnulib' - # telnetd disconnects without banner on 90% of connections - # http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00006.html - # http://lists.gnu.org/archive/html/bug-inetutils/2015-08/index.html - sed -e 's:if (pty_read () <= 0):if (pty_read () < 0):g' -i 'telnetd/telnetd.c' - - # http://lists.gnu.org/archive/html/bug-inetutils/2017-07/msg00005.html - patch -Nbup1 -i "${srcdir}/0001-telnetd-Fix-buffer-overflows.patch" + # makepkg -i reruns prepare() which it should not + if [ ! -L 'gnulib' ]; then + ln -s '../gnulib' + # telnetd disconnects without banner on 90% of connections + # http://lists.gnu.org/archive/html/bug-inetutils/2015-07/msg00006.html + # http://lists.gnu.org/archive/html/bug-inetutils/2015-08/index.html + sed -e 's:if (pty_read () <= 0):if (pty_read () < 0):g' -i 'telnetd/telnetd.c' + + # http://lists.gnu.org/archive/html/bug-inetutils/2017-07/msg00005.html + patch -Nbup1 < '../0001-telnetd-Fix-buffer-overflows.patch' + fi set +u } @@ -126,6 +147,9 @@ check() { set +u } +_scriptdir="/usr/share/${pkgname}" +_script="${_scriptdir}/${pkgname}.sh" + package() { set -u cd "${_srcdir}" @@ -142,6 +166,46 @@ package() { *) echo "Don't know where to write ${_src}"; false;; esac done + + # Install readline update detector + install -Dpm644 <(cat << EOF +#!/bin/sh + +set +e +set -u + +ftp << FEOF +quit +FEOF +if [ "\$?" -ne 0 ]; then + echo '*******************************************************************************' + echo '*******************************************************************************' + echo 'readline has been updated. ${pkgname} must be recompiled soon***************' + echo '*******************************************************************************' + echo '*******************************************************************************' +fi +EOF + ) "${pkgdir}${_script}" + bash -n "${pkgdir}${_script}" + + install -Dm644 <(cat << EOF +# Automatically generated by ${pkgname}-${pkgver} PKGBUILD from Arch Linux AUR +# https://aur.archlinux.org/ + +# Check ${pkgname} on each upgrade of readline + +[Trigger] +Operation = Upgrade +Type = Package +Target = readline + +[Action] +Description = Check ${pkgname} for readline update +Depends = coreutils +When = PostTransaction +Exec = /usr/bin/bash "${_script}" +EOF + ) "${pkgdir}/usr/share/libalpm/hooks/${pkgname}-foomatic-db.hook" set +u } set +u |