mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-05 14:57:15 +08:00
73 lines
2.2 KiB
Bash
73 lines
2.2 KiB
Bash
#
|
|
# 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>
|
|
|
|
pkgname=systemd
|
|
pkgver=29
|
|
pkgrel=1
|
|
pkgdesc="Session and Startup manager"
|
|
arch=('i686' 'x86_64')
|
|
url="http://www.freedesktop.org/wiki/Software/systemd"
|
|
license=('GPL2')
|
|
depends=('dbus-systemd' 'initscripts' 'sysvinit' 'rsyslog' 'util-linux>=2.19.1')
|
|
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"
|
|
"os-release")
|
|
md5sums=('e91ffd208c5f03e5c11966eee7b684b0'
|
|
'e092d06f2742ffe70f2956289b4af89f')
|
|
|
|
build() {
|
|
cd "$srcdir/$pkgname-$pkgver"
|
|
|
|
./configure --prefix=/usr \
|
|
--with-rootdir= \
|
|
--with-distro=other \
|
|
--sysconfdir=/etc \
|
|
--libexecdir=/usr/lib \
|
|
--localstatedir=/var \
|
|
--disable-audit \
|
|
--disable-tcpwrap \
|
|
--disable-gtk
|
|
|
|
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
|
|
}
|
|
|
|
|
|
|