mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-16 03:10:24 +08:00
45 lines
1.6 KiB
Bash
45 lines
1.6 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.09.1
|
|
_pkgver=2011.09
|
|
pkgrel=1
|
|
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)
|
|
depends=('glibc' 'bash' 'grep' 'coreutils' 'udev>=171-2' 'iproute2'
|
|
'ncurses' 'kbd' 'findutils' 'sysvinit')
|
|
optdepends=('bridge-utils: Network bridging support'
|
|
'dhcpcd: DHCP network configuration'
|
|
'net-tools: legacy network support'
|
|
'wireless_tools: Wireless networking')
|
|
install=initscripts.install
|
|
source=("http://chakra-project.org/sources/initscripts/initscripts-${_pkgver}.tar.xz"
|
|
'http://chakra-project.org/sources/initscripts/wireless.conf.d')
|
|
sha256sums=('569041e2009fc4b9fe3011d459443fd82dbbeee7c79cb796d88abb8e598d9448'
|
|
'0eba4250b07e0a727ef64772f5ee9027b123cbd4bb0894ba2842f545035c827f')
|
|
|
|
# create tarball: source PKGBUILD && mksource
|
|
|
|
mksource() {
|
|
rm -vRf ${pkgname}-${_pkgver}
|
|
git clone git://gitorious.org/chakra/chakra-${pkgname}.git ${pkgname}-${_pkgver}
|
|
rm -vRf ${pkgname}-${_pkgver}/.git
|
|
pushd ${pkgname}-${_pkgver}
|
|
popd
|
|
tar -cvJf ${pkgname}-${_pkgver}.tar.xz ${pkgname}-${_pkgver}/*
|
|
sha256sum ${pkgname}-${_pkgver}.tar.xz
|
|
}
|
|
package() {
|
|
cd ${srcdir}/${pkgname}-${_pkgver}
|
|
make DESTDIR=${pkgdir} install
|
|
install -D -m644 ${srcdir}/wireless.conf.d ${pkgdir}/etc/conf.d/wireless
|
|
}
|