Sergej Pupykin pushed to branch main at Arch Linux / Packaging / Packages / unrealircd
Commits: ae6c50d7 by Sergej Pupykin at 2024-11-02T20:15:23+03:00 upgpkg: 6.1.8.1-2 https://gitlab.archlinux.org/archlinux/packaging/packages/unrealircd/-/issues/2 - - - - - 2 changed files: - .SRCINFO - PKGBUILD Changes: ===================================== .SRCINFO ===================================== @@ -1,11 +1,12 @@ pkgbase = unrealircd pkgdesc = Open Source IRC Server pkgver = 6.1.8.1 - pkgrel = 1 + pkgrel = 2 url = https://www.unrealircd.org install = unrealircd.install arch = x86_64 - license = GPL2 + license = GPL-2.0-only + makedepends = chrpath depends = openssl depends = curl depends = c-ares @@ -14,6 +15,7 @@ pkgbase = unrealircd depends = libnsl depends = argon2 depends = libsodium + depends = jansson provides = ircd conflicts = ircd backup = etc/unrealircd/unrealircd.conf ===================================== PKGBUILD ===================================== @@ -3,12 +3,13 @@ pkgname=unrealircd pkgver=6.1.8.1 -pkgrel=1 +pkgrel=2 pkgdesc="Open Source IRC Server" arch=('x86_64') url="https://www.unrealircd.org" -license=('GPL2') -depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2' 'libnsl' 'argon2' 'libsodium') +license=('GPL-2.0-only') +depends=('openssl' 'curl' 'c-ares' 'tre' 'pcre2' 'libnsl' 'argon2' 'libsodium' 'jansson') +makedepends=('chrpath') conflicts=('ircd') provides=('ircd') backup=('etc/unrealircd/unrealircd.conf') @@ -24,6 +25,16 @@ sha256sums=('f8f7a0b738614a527e2420ca3970bc735c6c5346dfa8dd9e2d5bd2eeaf992e93' '91b5e1d623b51ffd4734d73e35cead09be596460c41b9440406f92c9e2b4b9b1' '9e595176e63b301476982b1456d6ed065c479ff913b6743417ab8a9efdda0e3a') +prepare() { + cd unrealircd-$pkgver + sed -i \ + -e 's|$(INSTALL) -m 0700|$(INSTALL) -m 0755|g' \ + -e 's|$(INSTALL) -m 0600|$(INSTALL) -m 0644|g' \ + Makefile.in + find -type d -exec chmod ugo+rx {} \; + find -type f -exec chmod ugo+r {} \; +} + build() { cd unrealircd-$pkgver ./configure \ @@ -41,7 +52,9 @@ build() { --with-scriptdir=/usr \ --with-nick-history=2000 \ --with-permissions=0644 \ - --enable-dynamic-linking + --enable-dynamic-linking \ + --enable-hardening \ + ac_cv_pic="-fPIC -DPIC -shared -Wl,-z,relro -Wl,-z,now" make } @@ -53,8 +66,10 @@ package() { cp "$pkgdir"/etc/unrealircd/examples/example.conf "$pkgdir"/etc/unrealircd/unrealircd.conf rm -rf "$pkgdir"/tmp rm "$pkgdir"/usr/source - chmod go+rx "$pkgdir"/usr/bin "$pkgdir"/usr/share/doc/unrealircd - chmod -R go+r "$pkgdir"/usr/share/doc/unrealircd +# chmod go+rx "$pkgdir"/usr/bin "$pkgdir"/usr/share/doc/unrealircd +# chmod -R go+r "$pkgdir"/usr/share/doc/unrealircd + + chrpath -d "$pkgdir"/usr/bin/{unrealircd,unrealircdctl} install -Dm0644 "$srcdir"/unrealircd.service "$pkgdir"/usr/lib/systemd/system/unrealircd.service install -Dm0644 "$srcdir"/unrealircd.tmpfiles.d "$pkgdir"/usr/lib/tmpfiles.d/unrealircd.conf View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/unrealircd/-/commit/ae6c50d73ff64eb3b8510245f5ecd625427b743c -- View it on GitLab: https://gitlab.archlinux.org/archlinux/packaging/packages/unrealircd/-/commit/ae6c50d73ff64eb3b8510245f5ecd625427b743c You're receiving this email because of your account on gitlab.archlinux.org.
