# Contributor: Sören Tempel # Contributor: Łukasz Jendrysik # Maintainer: Natanael Copa setvar pkgname = 'sudo' setvar pkgver = '1.8.21_p2' if test ${pkgver%_*} != $pkgver { setvar _realver = "${pkgver%_*}${pkgver#*_}" } else { setvar _realver = "$pkgver" } setvar pkgrel = '0' setvar pkgdesc = ""Give certain users the ability to run some commands as root"" setvar url = ""http://www.sudo.ws/sudo/"" setvar arch = ""all"" setvar license = ""custom ISC"" setvar makedepends = ""zlib-dev bash mdocml"" setvar depends = '' setvar subpackages = ""$pkgname-doc $pkgname-dev"" setvar source = ""https://www.sudo.ws/dist/sudo-${_realver}.tar.gz fix-cross-compile.patch libcrypt.patch musl-fix-headers.patch "" setvar options = ""suid"" # secfixes: # 1.8.20_p2-r0: # - CVE-2017-1000368 setvar builddir = ""$srcdir"/$pkgname-$_realver" proc build { cd $builddir ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --libexecdir=/usr/lib \ --mandir=/usr/share/man \ --disable-nls \ --enable-pie \ --with-env-editor \ --with-mdoc \ --without-pam \ --without-skey \ --with-passprompt="[sudo] password for %p: " \ || return 1 make || return 1 } proc package { cd $builddir # the sudo's mkinstalldir script miscreates the leading # path components with bad permissions. fix this. install -d -m0755 "$pkgdir"/var "$pkgdir"/var/db || return 1 make -j1 DESTDIR="$pkgdir" install || return 1 } setvar sha512sums = ""f04bbff54ad74ba73c078e15c75d2f41332d4912078ed66157ba7346b7fff914bd0747460cb4cd0c472af2d3b344fa72f5c62c95169df68a9cac74d7245c720c sudo-1.8.21p2.tar.gz f0f462f40502da2194310fe4a72ec1a16ba40f95a821ba9aa6aabaa423d28c4ab26b684afa7fb81c2407cf60de9327bdab01de51b878c5d4de49b0d62645f53c fix-cross-compile.patch 5ad20254aa587ef615f794081ecd55344eada5cf8c1a1d7956cc3f73375554716c483eeb74081da9a8501afce92cfbaf2abe59d1067aac67ce6e4874eb5a23e1 libcrypt.patch 113416fed7532c6092687c8bdd9913d04888d2f0a32e4333dd27a6b3d39145717ad5c3b3f05ba11bd6462612a9a013d446d254d50b2b651c33eeebe670f41ab5 musl-fix-headers.patch""