Minor spec file fixes
Helper scripts moved to /usr/libexec
This commit is contained in:
parent
1fd05f389b
commit
1244ad3d90
@ -7,10 +7,10 @@ Before=systemd-user-sessions.service
|
|||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/sysconfig/network
|
EnvironmentFile=-/etc/sysconfig/network
|
||||||
EnvironmentFile=-/etc/sysconfig/ypbind
|
EnvironmentFile=-/etc/sysconfig/ypbind
|
||||||
ExecStartPre=/usr/lib/ypbind/ypbind-pre-setdomain
|
ExecStartPre=/usr/libexec/ypbind-pre-setdomain
|
||||||
ExecStartPre=-/usr/sbin/setsebool allow_ypbind=1
|
ExecStartPre=-/usr/sbin/setsebool allow_ypbind=1
|
||||||
ExecStart=/usr/sbin/ypbind -n $OTHER_YPBIND_OPTS
|
ExecStart=/usr/sbin/ypbind -n $OTHER_YPBIND_OPTS
|
||||||
ExecStartPost=/usr/lib/ypbind/ypbind-post-waitbind
|
ExecStartPost=/usr/libexec/ypbind-post-waitbind
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
22
ypbind.spec
22
ypbind.spec
@ -1,10 +1,10 @@
|
|||||||
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
Summary: The NIS daemon which binds NIS clients to an NIS domain
|
||||||
Name: ypbind
|
Name: ypbind
|
||||||
Version: 1.36
|
Version: 1.36
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: System Environment/Daemons
|
Group: System Environment/Daemons
|
||||||
Source0: ftp://ftp.us.kernel.org/pub/linux/utils/net/NIS/ypbind-mt-%{version}.tar.bz2
|
Source0: http://www.linux-nis.org/download/ypbind-mt/ypbind-mt-%{version}.tar.bz2
|
||||||
Url: http://www.linux-nis.org/nis/ypbind-mt/index.html
|
Url: http://www.linux-nis.org/nis/ypbind-mt/index.html
|
||||||
#Source1: ypbind.init
|
#Source1: ypbind.init
|
||||||
Source2: nis.sh
|
Source2: nis.sh
|
||||||
@ -27,9 +27,6 @@ Epoch: 3
|
|||||||
BuildRequires: dbus-glib-devel, docbook-style-xsl
|
BuildRequires: dbus-glib-devel, docbook-style-xsl
|
||||||
BuildRequires: systemd-units
|
BuildRequires: systemd-units
|
||||||
|
|
||||||
# Location where helper scripts are located
|
|
||||||
%define scripts_path /usr/lib/%{name}
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Network Information Service (NIS) is a system that provides
|
The Network Information Service (NIS) is a system that provides
|
||||||
network information (login names, passwords, home directories, group
|
network information (login names, passwords, home directories, group
|
||||||
@ -61,12 +58,15 @@ make
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make install DESTDIR=$RPM_BUILD_ROOT
|
make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/yp/binding $RPM_BUILD_ROOT/etc/dhcp/dhclient.d/ $RPM_BUILD_ROOT%{_unitdir} $RPM_BUILD_ROOT%{scripts_path}/
|
mkdir -p $RPM_BUILD_ROOT/var/yp/binding
|
||||||
|
mkdir -p $RPM_BUILD_ROOT/etc/dhcp/dhclient.d
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
|
||||||
|
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}
|
||||||
install -m 644 etc/yp.conf $RPM_BUILD_ROOT/etc/yp.conf
|
install -m 644 etc/yp.conf $RPM_BUILD_ROOT/etc/yp.conf
|
||||||
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/dhcp/dhclient.d/nis.sh
|
install -m 755 %{SOURCE2} $RPM_BUILD_ROOT/etc/dhcp/dhclient.d/nis.sh
|
||||||
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/ypbind.service
|
install -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/ypbind.service
|
||||||
install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{scripts_path}/ypbind-pre-setdomain
|
install -m 755 %{SOURCE4} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-pre-setdomain
|
||||||
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{scripts_path}/ypbind-post-waitbind
|
install -m 755 %{SOURCE5} $RPM_BUILD_ROOT%{_libexecdir}/ypbind-post-waitbind
|
||||||
|
|
||||||
%{find_lang} %{name}
|
%{find_lang} %{name}
|
||||||
|
|
||||||
@ -105,7 +105,7 @@ fi
|
|||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_sbindir}/*
|
%{_sbindir}/*
|
||||||
%{_mandir}/*/*
|
%{_mandir}/*/*
|
||||||
%{scripts_path}/*
|
%{_libexecdir}/*
|
||||||
%{_unitdir}/*
|
%{_unitdir}/*
|
||||||
/etc/dhcp/dhclient.d/*
|
/etc/dhcp/dhclient.d/*
|
||||||
%config(noreplace) /etc/yp.conf
|
%config(noreplace) /etc/yp.conf
|
||||||
@ -113,6 +113,10 @@ fi
|
|||||||
%doc README NEWS COPYING
|
%doc README NEWS COPYING
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Jul 11 2012 Honza Horak <hhorak@redhat.com> - 3:1.36-2
|
||||||
|
- Minor spec file fixes
|
||||||
|
- Helper scripts moved to /usr/libexec
|
||||||
|
|
||||||
* Wed Jul 11 2012 Honza Horak <hhorak@redhat.com> - 3:1.36-1
|
* Wed Jul 11 2012 Honza Horak <hhorak@redhat.com> - 3:1.36-1
|
||||||
- Update to new version 1.36
|
- Update to new version 1.36
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user