diff options
author | Tharre <tharre3@gmail.com> | 2019-05-31 05:21:53 +0200 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2019-06-30 04:11:56 +0200 |
commit | 687315205e2251432566e5d438d57a513760ec54 (patch) | |
tree | cc2c9355342118266587458c77feab2d8e2b2774 /arch-system | |
parent | fc5ec7fecddb52899d4e06edd9d4cabbf17a20d9 (diff) | |
download | pkgbuilds-687315205e2251432566e5d438d57a513760ec54.tar.gz pkgbuilds-687315205e2251432566e5d438d57a513760ec54.tar.xz pkgbuilds-687315205e2251432566e5d438d57a513760ec54.zip |
arch-system: fix .install and run it
Before, base-system.install wasn't actually run, since it wasn't
specified in `install=` in the PKGBUILD anywhere. Also run it both in
the post-upgrade and post-install steps.
`--global` was removed since it caused errors, it's unclear what exactly
it does in the first place, but other official PKGBUILDs did it this way..
Diffstat (limited to 'arch-system')
-rw-r--r-- | arch-system/PKGBUILD | 11 | ||||
-rw-r--r-- | arch-system/base-system.install | 10 |
2 files changed, 12 insertions, 9 deletions
diff --git a/arch-system/PKGBUILD b/arch-system/PKGBUILD index a753385..e7ca17d 100644 --- a/arch-system/PKGBUILD +++ b/arch-system/PKGBUILD @@ -8,17 +8,15 @@ pkgdesc="Arch Linux system configuration" arch=("any") url="" license=('custom') -source=('base-system.install' 'etc-pacman.conf' 'etc-locale.conf' - 'etc-locale.gen' 'etc-vconsole.conf' 'mirrorupgrade.hook' - 'sudoers-wheel' 'etc-nsswitch.conf' 'etc-sysctl.conf' - '90-modprobe-d.hook' 'etc-yubikey.rules' +source=('etc-pacman.conf' 'etc-locale.conf' 'etc-locale.gen' 'etc-vconsole.conf' + 'mirrorupgrade.hook' 'sudoers-wheel' 'etc-nsswitch.conf' + 'etc-sysctl.conf' '90-modprobe-d.hook' 'etc-yubikey.rules' 'sudoers-borgbackup' 'backup-sudo' 'borg-backup.service' 'borg-backup.timer' 'borgbackup' 'xps13-i915.conf') -sha256sums=('bb00c42f2802c12536c46700b948d41a43153d97a6986827b7c61203880e1ad1' - 'b3b540ac0dd68831d813e34dd8465cd00e8ba6a56fa6e5a162dc5ef469ec584c' +sha256sums=('b3b540ac0dd68831d813e34dd8465cd00e8ba6a56fa6e5a162dc5ef469ec584c' '70b74b741f3b1b58eeb97d8d5b9e6148a35ff8dced47cf4a231c1d0420aff5eb' '61359bca48f246bc90d90204ad894bfc22665d789b130fc838e9926dc47ab3a3' '978271534da06356159eb24c0cee32b0024029d41df836ab76a964dfd7d36447' @@ -38,6 +36,7 @@ sha256sums=('bb00c42f2802c12536c46700b948d41a43153d97a6986827b7c61203880e1ad1' package_base-system() { depends=('gvim' 'zsh' 'tmux' 'htop' 'git' 'reflector' 'sudo' 'avahi' 'nss-mdns' 'ttf-dejavu' 'chromium' 'ttf-liberation') + install="$pkgname.install" install -Dm0644 etc-pacman.conf "$pkgdir"/etc/pacman.conf install -Dm0644 etc-locale.conf "$pkgdir"/etc/locale.conf diff --git a/arch-system/base-system.install b/arch-system/base-system.install index b428aac..371f832 100644 --- a/arch-system/base-system.install +++ b/arch-system/base-system.install @@ -1,10 +1,14 @@ -post_install() { +post_upgrade() { # in case it wasn't already run by glibc locale-gen - systemctl --global enable avahi-daemon.service + systemctl enable --now avahi-daemon.service +} + +post_install() { + post_upgrade } pre_remove() { - systemctl --global disable avahi-daemon.service + systemctl disable avahi-daemon.service } |