From 396c806a06050e0aee02acb86b263b9a7fbd021c Mon Sep 17 00:00:00 2001 From: Yurii Kolesnykov Date: Wed, 31 Jul 2019 23:52:35 +0300 Subject: remove /usr/share/factory/etc/issue Signed-off-by: Yurii Kolesnykov --- .SRCINFO | 8 ++++---- PKGBUILD | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.SRCINFO b/.SRCINFO index 70a8ec5..8c93524 100644 --- a/.SRCINFO +++ b/.SRCINFO @@ -1,6 +1,6 @@ pkgbase = systemd-git pkgdesc = systemd (git version) - pkgver = 242.756 + pkgver = 243.rc1.r14.gcd826afaf3 pkgrel = 1 url = https://www.github.com/systemd/systemd arch = x86_64 @@ -105,10 +105,10 @@ pkgname = systemd-git optdepends = systemd-sysvcompat-git: symlink package to provide sysvinit binaries optdepends = polkit: allow administration as unprivileged user optdepends = curl: machinectl pull-tar and pull-raw - provides = systemd=242.756 + provides = systemd=243.rc1.r14.gcd826afaf3 provides = nss-myhostname - provides = systemd-tools=242.756 - provides = udev=242.756 + provides = systemd-tools=243.rc1.r14.gcd826afaf3 + provides = udev=243.rc1.r14.gcd826afaf3 conflicts = systemd conflicts = nss-myhostname conflicts = systemd-tools diff --git a/PKGBUILD b/PKGBUILD index 9eac3f5..70cca4f 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -7,7 +7,7 @@ pkgbase=systemd-git _pkgbase=systemd pkgname=('systemd-git' 'systemd-libs-git' 'systemd-resolvconf-git' 'systemd-sysvcompat-git') pkgdesc="systemd (git version)" -pkgver=242.756 +pkgver=243.rc1.r14.gcd826afaf3 pkgrel=1 arch=('x86_64') url='https://www.github.com/systemd/systemd' @@ -65,11 +65,8 @@ prepare() { pkgver() { cd "$_pkgbase" - - local _version _count - _version="$(git describe --abbrev=0 --tags)" - _count="$(git rev-list --count ${_version}..)" - printf '%s.%s' "${_version#v}" "${_count}" + # cutting off 'foo-' prefix that presents in the git tag + git describe --long | sed 's/^v//;s/\([^-]*-g\)/r\1/;s/-/./g' } build() { @@ -172,6 +169,9 @@ package_systemd-git() { rm -f "$pkgdir"/usr/share/factory/etc/nsswitch.conf sed -i '/^C \/etc\/nsswitch\.conf/d' "$pkgdir"/usr/lib/tmpfiles.d/etc.conf + # avoid a conflict with [core]/filesystem + rm -f "$pkgdir"/usr/share/factory/etc/issue + # add back tmpfiles.d/legacy.conf, normally omitted without sysv-compat install -m0644 $_pkgbase/tmpfiles.d/legacy.conf "$pkgdir"/usr/lib/tmpfiles.d -- cgit v1.2.3-70-g09d2