Magellan Linux

Contents of /branches/magellan-next/core/systemd/systemd-28-r1.smage2

Parent Directory Parent Directory | Revision Log Revision Log


Revision 7839 - (show annotations) (download)
Wed Jun 1 20:17:43 2011 UTC (12 years, 11 months ago) by niro
File size: 2109 byte(s)
auto added: ver bump to 28-r1
1 # $Id$
2
3 PNAME="systemd"
4 PVER="28"
5 PBUILD="r1"
6
7 PCATEGORIE="sys-apps"
8 STATE="unstable"
9
10 DESCRIPTION="System and Session Manager."
11 HOMEPAGE="http://www.freedesktop.org/wiki/Software/systemd"
12
13 DEPEND=">= sys-apps/dbus-1.4
14 >= sys-fs/udev-170
15 >= dev-libs/dbus-glib-0.92
16 >= sys-apps/sysvinit-2.88
17 >= sys-apps/tcp-wrappers-7.6
18 >= sys-libs/pam-1.1
19 >= sys-libs/libcap-2.20
20 >= sys-apps/util-linux-2.19"
21
22 SDEPEND=">= app-text/docbook-xsl-stylesheets-1.76
23 >= x11-libs/gtk2+-2.24
24 >= dev-libs/libcgroup-0.37
25 >= dev-libs/libxslt-1.1.26
26 >= dev-lang/vala-0.12
27 >= virtual/kernel-headers
28 >= x11-libs/libnotify-0.4.5"
29
30 SRCFILE="${PNAME}-${PVER}.tar.bz2"
31 SRCDIR="${BUILDDIR}/${PNAME}-${PVER}"
32
33 SRC_URI=(
34 http://www.freedesktop.org/software/${PNAME}/${SRCFILE}
35 mirror://${PNAME}/${SRCFILE}
36 mirror://${PNAME}/${PNAME}-${PVER}-magellan.patch
37 )
38
39 UP2DATE="updatecmd http://www.freedesktop.org/software/systemd/ | lasttarball"
40
41 src_prepare()
42 {
43 munpack ${SRCFILE} || die
44 cd ${SRCDIR}
45
46 # apply our magellan patch
47 mpatch ${PNAME}-${PVER}-magellan.patch || die
48
49 # regen configure
50 autoreconf --verbose --install --force || die
51 }
52
53 src_compile()
54 {
55 cd ${SRCDIR}
56
57 mconfigure \
58 --with-distro=magellan \
59 --libexecdir=/usr/$(mlibdir)/${PNAME} \
60 --with-pamlibdir=/$(mlibdir)/security \
61 --with-rootdir=/ \
62 --enable-gtk \
63 --enable-pam \
64 --enable-tcpwrap \
65 --disable-audit \
66 --disable-selinux \
67 || die
68
69 mmake || die
70 }
71
72 src_install()
73 {
74 cd ${SRCDIR}
75 mmake DESTDIR=${BINDIR} install || die
76
77 # install os-release file
78 cat > ${BINDIR}/etc/os-release << EOF
79 NAME="Magellan Linux"
80 ID=magellan
81 PRETTY_NAME="Magellan Linux"
82 ANSI_COLOR="1;34"
83 EOF
84
85 minstalldocs DISTRO_PORTING LICENSE README TODO || die
86 }
87
88 preinstall()
89 {
90 # adding lock group
91 ${MLIBDIR}/mgroupadd -o "-g 54" lock
92 }
93
94 postinstall()
95 {
96 if [[ -z ${MROOT} ]] || [[ ${MROOT} = / ]]
97 then
98 # create machine-id
99 if [ ! -f /etc/machine-id ]
100 then
101 systemd-machine-id-setup
102 fi
103 fi
104
105 echo
106 echo "systemd has been installed to /bin/systemd. Please ensure you append"
107 echo "init=/bin/systemd to your kernel command line in your bootloader."
108 echo
109 }