summaryrefslogtreecommitdiffstats
path: root/abs/core/initscripts/PKGBUILD
blob: 5eae2395c373b718f0b4d6f90400e1dbdbebb697 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# Maintainer: Alexey D. <lq07829icatm@rambler.ru>
# Contributor: Tom Gundersen <teg@jklm.no>
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>

pkgname=initscripts
pkgver=2014.09.1
pkgrel=1
pkgdesc="Maintained fork of system initialization/bootup scripts"
arch=('any')
url="https://bitbucket.org/TZ86/initscripts-fork/overview"
license=('GPL2')
provides=('initscripts-systemd')
conflicts=('initscripts-systemd')
replaces=('initscripts-systemd')
backup=(etc/inittab etc/rc.conf etc/rc.local etc/rc.local.shutdown)
depends=('glibc' 'bash' 'coreutils' 'iproute2' 'ncurses' 'findutils' 'procps-ng' 'kbd' 'bootlogd')
optdepends=('dhcpcd: DHCP network configuration'
            'bridge-utils: Network bridging support'
            'net-tools: Network support'
            'wireless_tools: Wireless networking'
            'systemd: new crypttab format support'
            'sysctl-default-conf: additional tweaks for kernel parameters')
makedepends=(asciidoc)
install=initscripts.install
source=(https://bitbucket.org/TZ86/$pkgname-fork/get/$pkgver.tar.bz2)
md5sums=('10428fab486b57ed47f7a19033239446')

package() {
  cd TZ86-$pkgname-*

  make DESTDIR=${pkgdir} install

  #comment out some rc.conf options
  sed -i 's/NETWORK_PERSIST=/#NETWORK_PERSIST=/g' ${pkgdir}/etc/rc.conf
  sed -i 's/DAEMONS=/#DAEMONS=/g' ${pkgdir}/etc/rc.conf

  #use systemd-tmpfiles instead of arch-tmpfiles
  sed -i 's:/usr/lib/initscripts/arch-tmpfiles:/usr/bin/systemd-tmpfiles:g' ${pkgdir}/etc/rc.d/functions
}

# vim:set ts=2 sw=2 et: