core/systemd/PKGBUILD

75 lines
2.4 KiB
Bash
Raw Normal View History

2011-06-17 20:40:10 +08:00
#
# Core 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>
2011-08-02 16:35:01 +08:00
# maintainer (x86_64:) Mateusz Krawczuk <willingmagic[at]gmail[dot]com>
2011-06-17 20:40:10 +08:00
pkgname=systemd
2011-08-02 16:35:01 +08:00
pkgver=32
2011-06-19 05:05:42 +08:00
pkgrel=1
2011-06-17 20:40:10 +08:00
pkgdesc="Session and Startup manager"
arch=('i686' 'x86_64')
url="http://www.freedesktop.org/wiki/Software/systemd"
license=('GPL2')
2011-07-21 07:15:46 +08:00
depends=('dbus-systemd' 'initscripts' 'sysvinit' 'intltool' 'rsyslog' 'util-linux>=2.19.1')
2011-06-17 20:40:10 +08:00
makedepends=('docbook-xsl' 'libxslt' 'cryptsetup' )
optdepends=('cryptsetup: required for encrypted block devices'
'dbus-python: systemd-analyze'
'initscripts-systemd: native boot and initialization scripts'
'libnotify: systemadm'
'python2-cairo: systemd-analyze'
'systemd-units: collection of native unit files for Chakra daemon/init scripts')
groups=('systemd')
options=('!libtool')
backup=(etc/systemd/system.conf
etc/tmpfiles.d/systemd.conf
etc/tmpfiles.d/x11.conf)
install=systemd.install
source=("http://www.freedesktop.org/software/$pkgname/$pkgname-$pkgver.tar.bz2"
2011-06-18 02:02:17 +08:00
"os-release" "systemd-add-chakra.patch")
2011-08-02 16:35:01 +08:00
md5sums=('d8d4b42034be8ef403e72d7d2d1d1150'
2011-06-18 02:02:17 +08:00
'68cf3e12b0e98a51efde9811e5fc713c'
'd7cbae2627bb60360a6b1c03dd0fd90a')
2011-06-17 20:40:10 +08:00
build() {
cd "$srcdir/$pkgname-$pkgver"
2011-06-18 02:02:17 +08:00
patch -Np1 -i ${srcdir}/systemd-add-chakra.patch
2011-06-17 20:40:10 +08:00
./configure --prefix=/usr \
--with-rootdir= \
2011-06-18 02:02:17 +08:00
--with-distro=chakra \
2011-06-17 20:40:10 +08:00
--sysconfdir=/etc \
--libexecdir=/usr/lib \
--localstatedir=/var \
--disable-audit \
--disable-tcpwrap \
--disable-gtk
2011-06-18 02:02:17 +08:00
echo "test"
2011-06-17 20:40:10 +08:00
make
}
package() {
mkdir -p ${pkgdir}/run
cd "$srcdir/$pkgname-$pkgver"
make DESTDIR="$pkgdir" install
install -Dm644 "$srcdir/os-release" "$pkgdir/etc/os-release"
# install -dm755 "$pkgdir/etc/modules-load.d"
printf "d /run/console 755 root root\n" > "$pkgdir/etc/tmpfiles.d/console.conf"
# fix systemd-analyze for python2
sed -i '1s/python$/python2/' "$pkgdir/usr/bin/systemd-analyze"
# install target doesn't bring in plymouth units
# install -m644 units/plymouth-* "$pkgdir/lib/systemd/system"
# rename man pages to avoid conflicts with sysvinit
cd "$pkgdir/usr/share/man/man8"
for manpage in telinit halt reboot poweroff runlevel shutdown; do
mv {,systemd.}"$manpage.8"
done
}