Summary: Systemd-216 Name: systemd Version: 216 Release: 3%{?dist} License: LGPLv2+ and GPLv2+ and MIT URL: http://www.freedesktop.org/wiki/Software/systemd/ Group: System Environment/Security Vendor: VMware, Inc. Distribution: Photon Source0: http://www.freedesktop.org/software/systemd/%{name}-%{version}.tar.xz Patch0: systemd-216-compat-1.patch Requires: Linux-PAM Requires: libcap Requires: xz BuildRequires: intltool BuildRequires: gperf BuildRequires: libcap BuildRequires: xz-devel BuildRequires: Linux-PAM BuildRequires: XML-Parser BuildRequires: kbd BuildRequires: kmod Requires: kmod %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 %build ./configure --prefix=%{_prefix} \ --sysconfdir=/etc \ --localstatedir=/var \ --config-cache \ --with-rootprefix= \ --with-rootlibdir=/usr/lib \ --enable-split-usr \ --disable-gudev \ --disable-firstboot \ --disable-ldconfig \ --disable-sysusers \ --without-python \ --enable-pam \ --docdir=%{_prefix}/share/doc/systemd-216 \ --with-dbuspolicydir=/etc/dbus-1/system.d \ --with-dbusinterfacedir=%{_prefix}/share/dbus-1/interfaces \ --with-dbussessionservicedir=%{_prefix}/share/dbus-1/services \ --with-dbussystemservicedir=%{_prefix}/share/dbus-1/system-services 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 #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 %post -p /sbin/ldconfig %postun /sbin/ldconfig %clean rm -rf %{buildroot}/* %files %defattr(-,root,root) %{_sysconfdir}/* /lib/* %{_libdir}/* %{_bindir}/* /bin/* /sbin/* %{_includedir}/* %{_datadir}/* %changelog * Wed May 27 2015 Divya Thaluru <dthaluru@vmware.com> 216-3 - Removing packing of PAM configuration files * Mon May 18 2015 Touseef Liaqat <tliaqat@vmware.com> 216-2 - Update according to UsrMove. * Mon Oct 27 2014 Sharath George <sharathg@vmware.com> 216-1 - Initial build. First version