3f7fcace |
Summary: Systemd-216 |
f4d17450 |
Name: systemd |
3f7fcace |
Version: 216 |
e50ed14b |
Release: 12%{?dist} |
f4d17450 |
License: LGPLv2+ and GPLv2+ and MIT
URL: http://www.freedesktop.org/wiki/Software/systemd/
Group: System Environment/Security
Vendor: VMware, Inc.
Distribution: Photon |
3f7fcace |
Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz
%define sha1 systemd=0d933a2f76db5d30f52429e9b172323bc6abd49a
Patch0: systemd-216-compat-1.patch |
d02f1de4 |
Patch1: 01-enoX-uses-instance-number-for-vmware-hv.patch |
3f7fcace |
Requires: Linux-PAM
Requires: libcap
Requires: xz |
e58e73a4 |
BuildRequires: intltool |
3f7fcace |
BuildRequires: gperf |
d77dd20b |
BuildRequires: libcap-devel |
e58e73a4 |
BuildRequires: xz-devel |
3f7fcace |
BuildRequires: Linux-PAM
BuildRequires: XML-Parser
BuildRequires: kbd
BuildRequires: kmod |
e58e73a4 |
Requires: kmod |
3f7fcace |
BuildRequires: glib-devel
Requires: glib |
f4d17450 |
%description
Systemd is an init replacement with better process control and security
%prep
%setup -q
cat > config.cache << "EOF"
KILL=/bin/kill
HAVE_BLKID=1
BLKID_LIBS="-lblkid"
BLKID_CFLAGS="-I/usr/include/blkid"
cc_cv_CFLAGS__flto=no
EOF
sed -i "s:blkid/::" $(grep -rl "blkid/blkid.h")
%patch0 -p1 |
d02f1de4 |
%patch1 -p1 |
f4d17450 |
%build |
3f7fcace |
./configure --prefix=%{_prefix} \ |
f4d17450 |
--sysconfdir=/etc \
--localstatedir=/var \
--config-cache \
--with-rootprefix= \ |
3f7fcace |
--with-rootlibdir=/usr/lib \ |
f4d17450 |
--enable-split-usr \
--disable-firstboot \
--disable-ldconfig \
--disable-sysusers \
--without-python \
--enable-pam \ |
3f7fcace |
--docdir=%{_prefix}/share/doc/systemd-216 \ |
f4d17450 |
--with-dbuspolicydir=/etc/dbus-1/system.d \
--with-dbusinterfacedir=%{_prefix}/share/dbus-1/interfaces \
--with-dbussessionservicedir=%{_prefix}/share/dbus-1/services \ |
92e58245 |
--with-dbussystemservicedir=%{_prefix}/share/dbus-1/system-services \ |
2e8108f6 |
--enable-compat-libs \
--with-sysvinit-path=/etc/rc.d/init.d \
--with-rc-local-script-path-start=/etc/rc.d/rc.local |
f4d17450 |
make %{?_smp_mflags}
%install
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
make DESTDIR=%{buildroot} install
install -vdm 755 %{buildroot}/sbin
for tool in runlevel reboot shutdown poweroff halt telinit; do
ln -sfv ../bin/systemctl %{buildroot}/sbin/${tool}
done
ln -sfv ../lib/systemd/systemd %{buildroot}/sbin/init
rm -f %{buildroot}%{_var}/log/README |
57342c05 |
mkdir -p %{buildroot}%{_localstatedir}/log/journal |
f4d17450 |
|
2530f4b1 |
#cp %{buildroot}/usr/share/factory/etc/pam.d/system-auth %{buildroot}%{_sysconfdir}/pam.d/system-auth
#cp %{buildroot}/usr/share/factory/etc/pam.d/other %{buildroot}%{_sysconfdir}/pam.d/other |
e50ed14b |
find %{buildroot}%{_libdir} -name '*.la' -delete |
f4d17450 |
%post -p /sbin/ldconfig
%postun
/sbin/ldconfig
%clean
rm -rf %{buildroot}/*
%files
%defattr(-,root,root)
%{_sysconfdir}/* |
f269ffe9 |
/lib/* |
01a57a2c |
%exclude %{_libdir}/debug/* |
f269ffe9 |
%{_libdir}/* |
f4d17450 |
%{_bindir}/*
/bin/*
/sbin/*
%{_includedir}/*
%{_datadir}/* |
57342c05 |
%dir %{_localstatedir}/log/journal |
f4d17450 |
|
2530f4b1 |
|
f4d17450 |
%changelog |
e50ed14b |
* Fri Oct 9 2015 Xiaolin Li <xiaolinl@vmware.com> 216-12
- Removing la files from packages. |
57342c05 |
* Fri Sep 18 2015 Divya Thaluru <dthaluru@vmware.com> 216-11
- Packaging journal log directory |
d02f1de4 |
* Tue Sep 10 2015 Alexey Makhalov <amakhalov@vmware.com> 216-10
- Improve enoX renaming in VMware HV case. Patch is added. |
16bfebda |
* Tue Aug 25 2015 Alexey Makhalov <amakhalov@vmware.com> 216-9
- Reduce systemd-networkd boot time (exclude if-rename patch). |
3f7fcace |
* Tue Jul 20 2015 Divya Thaluru <dthaluru@vmware.com> 216-8 |
2e8108f6 |
- Adding sysvinit support |
ea9cbade |
* Mon Jul 06 2015 Kumar Kaushik <kaushikk@vmware.com> 216-7
- Fixing networkd/udev race condition for renaming interface. |
92e58245 |
* Thu Jun 25 2015 Sharath George <sharathg@vmware.com> 216-6
- Remove debug files.
* Tue Jun 23 2015 Divya Thaluru <dthaluru@vmware.com> 216-5
- Building compat libs |
83eef34e |
* Mon Jun 1 2015 Alexey Makhalov <amakhalov@vmware.com> 216-4
- gudev support |
3e0d0cb6 |
* Wed May 27 2015 Divya Thaluru <dthaluru@vmware.com> 216-3 |
2530f4b1 |
- Removing packing of PAM configuration files |
3e0d0cb6 |
* Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 216-2
- Update according to UsrMove. |
f4d17450 |
* Mon Oct 27 2014 Sharath George <sharathg@vmware.com> 216-1
- Initial build. First version |