summaryrefslogtreecommitdiffstats
path: root/abs/core/sysvinit/PKGBUILD
blob: e2c87ab6def8ed6225db8685100697f91f6de1ec (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
# $Id: PKGBUILD 92996 2010-10-02 19:26:38Z eric $
# Maintainer: Eric Belanger <eric@archlinux.org>
# Contributor: judd <jvinet@zeroflux.org>

pkgname=sysvinit
pkgver=2.88
pkgrel=5
pkgdesc="Linux System V Init"
arch=('i686' 'x86_64')
url="http://savannah.nongnu.org/projects/sysvinit"
license=('GPL')
groups=('base')
depends=('shadow' 'util-linux' 'coreutils' 'glibc' 'awk' 'poweroff-scripts')
source=(http://download.savannah.gnu.org/releases/sysvinit/${pkgname}-${pkgver}dsf.tar.bz2 halt-init.patch)

build() {
  cd "${srcdir}/${pkgname}-${pkgver}dsf"
  patch -p0 < ${srcdir}/halt-init.patch
  make || return 1
}

package() {
  cd "${srcdir}/${pkgname}-${pkgver}dsf"
  make ROOT="${pkgdir}" install

  # Rename some stuff so it does not bigfoot changes needed for runit
  cd "${pkgdir}/sbin"
  rm -f reboot poweroff
  #These will be created in the poweroff-scripts post-install section
  #This should be removed when moving to 64 and we have no legacy to worry about
  #ln -s halt.init reboot.init
  #ln -s halt.init poweroff.init 



  mv halt halt.init
  mv shutdown shutdown.init


}
md5sums=('6eda8a97b86e0a6f59dabbf25202aa6f'
         'cd4c5767f63ca5881e3e1f1c4f10f896')