PKGBUILDs/core/initscripts/PKGBUILD

48 lines
1.6 KiB
Bash
Raw Normal View History

2012-01-21 22:21:45 +00:00
# $Id$
# Maintainer: Tom Gundersen <teg@jklm.no>
# Contributor: Thomas Bächler <thomas@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
2012-01-21 22:21:45 +00:00
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - inittab serial setup for v5/v7
# - patch to adjust naming to ALARM, fix remounting root, turn off LEDs on shutdown
plugrel=1
2011-03-05 20:14:44 +00:00
pkgname=initscripts
2012-06-28 12:57:28 +00:00
pkgver=2012.06.2
2012-06-10 17:16:24 +00:00
pkgrel=1
pkgdesc="System initialization/bootup scripts"
2012-01-21 22:21:45 +00:00
arch=('any')
url="http://www.archlinux.org"
license=('GPL2')
groups=('base')
backup=(etc/inittab etc/rc.conf etc/rc.local etc/rc.local.shutdown etc/conf.d/wireless)
2012-06-28 12:57:28 +00:00
depends=('glibc' 'bash' 'coreutils' 'systemd-tools' 'iproute2' 'ncurses' 'findutils' 'sysvinit')
optdepends=('bridge-utils: Network bridging support'
'dhcpcd: DHCP network configuration'
'net-tools: legacy network support'
'wireless_tools: Wireless networking')
2012-01-21 22:21:45 +00:00
makedepends=(asciidoc)
install=initscripts.install
2012-01-21 22:21:45 +00:00
source=("ftp://ftp.archlinux.org/other/initscripts/${pkgname}-${pkgver}.tar.xz"
'wireless.conf.d'
'alarm.patch'
'rc.conf')
2012-06-28 12:57:28 +00:00
md5sums=('db1891a58ec03bb912e7935aa8723b4f'
'027576534885b8d5dded9be546057b12'
2012-05-06 17:05:05 +00:00
'e77890fd546ca599a2bd129b040c0b05'
2012-01-21 22:21:45 +00:00
'c618e099f522f861e08a475f8960a6c2')
package() {
2012-01-21 22:21:45 +00:00
cd ${srcdir}/${pkgname}-${pkgver}
patch -p1 -i "${srcdir}/alarm.patch"
cp "${srcdir}/rc.conf" .
[ "${CARCH}" == "arm" ] && sed -i 's/@TTY@/ttyS0/' inittab
[ "${CARCH}" == "armv7h" ] && sed -i 's/@TTY@/ttyO2/' inittab
make DESTDIR=${pkgdir} install
install -D -m644 ${srcdir}/wireless.conf.d ${pkgdir}/etc/conf.d/wireless
}