mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 00:44:38 +08:00
54 lines
1.8 KiB
Bash
54 lines
1.8 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=initscripts
|
|
pkgver=2011.12.1.1
|
|
pkgrel=2
|
|
pkgdesc="System initialization/bootup scripts"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.chakra-project.org"
|
|
license=('GPL2')
|
|
groups=('base')
|
|
backup=(etc/inittab etc/rc.conf etc/rc.local etc/rc.local.shutdown etc/conf.d/wireless etc/locale.conf)
|
|
depends=('glibc' 'bash' 'grep' 'coreutils' 'udev>=174' 'iproute2'
|
|
'ncurses' 'kbd' 'findutils' 'sysvinit')
|
|
optdepends=('net-tools: legacy networking support'
|
|
'bridge-utils: Network bridging support'
|
|
'dhcpcd: DHCP network configuration'
|
|
'wireless_tools: Wireless networking')
|
|
makedepends=(asciidoc)
|
|
install=initscripts.install
|
|
source=("http://chakra.sourceforge.net/sources/${pkgname}/${pkgname}-${pkgver}.tar.xz"
|
|
"http://chakra.sourceforge.net/sources/initscripts/wireless.conf.d")
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
rm -vRf chakra-${pkgname}
|
|
git clone git://gitorious.org/chakra/chakra-${pkgname}.git
|
|
rm -vRf chakra-${pkgname}/.git
|
|
pushd chakra-${pkgname}
|
|
popd
|
|
tar -cvJf ${pkgname}-${pkgver}.tar.xz chakra-${pkgname}/*
|
|
sha256sum ${pkgname}-${pkgver}.tar.xz
|
|
}
|
|
|
|
package() {
|
|
cd ${srcdir}/chakra-${pkgname}
|
|
|
|
# Update copyright year
|
|
sed -i 's/2006-2011/2006-2012/g' rc.sysinit
|
|
|
|
make DESTDIR=${pkgdir} install
|
|
install -D -m644 ${srcdir}/wireless.conf.d ${pkgdir}/etc/conf.d/wireless
|
|
|
|
# Avoid conflicts
|
|
mv ${pkgdir}/etc/profile.d/locale.sh ${pkgdir}/etc/profile.d/locale.sh.new
|
|
}
|
|
|
|
sha256sums=('c4df150201a5194dd0eb0973b53998ae84eaaf7443b3aaefa1f37f4d902d2f90'
|
|
'0eba4250b07e0a727ef64772f5ee9027b123cbd4bb0894ba2842f545035c827f')
|