]> git.pld-linux.org Git - packages/nss_db.git/commitdiff
- don't touch configs by your own fantasies
authorzbyniu <zbyniu@pld-linux.org>
Thu, 9 Feb 2012 22:49:39 +0000 (22:49 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nss_db.spec -> 1.46

nss_db.spec

index 55c0228336bb5a0f843b4c4e04c662e5fb71840d..16bd7727b3d225e88c06cb7ecadacaa0d4ea8c1f 100644 (file)
@@ -48,7 +48,6 @@ BuildRequires:        libtool
 Requires:      glibc >= 6:2.3
 Requires:      make
 Requires(post):        /sbin/ldconfig
-Requires:      sed >= 4.0
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 # glibc private symbols
@@ -172,24 +171,7 @@ ln -sf create-db $RPM_BUILD_ROOT%{_bindir}/update-db
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-/sbin/ldconfig
-if [ -f %{_sysconfdir}/nsswitch.conf ]; then
-       %{__sed} -i -e '
-               /^\(passwd\|group\|hosts\):/ !b
-               /\<db\>/ b
-               s/[[:blank:]]*$/ db/
-       ' %{_sysconfdir}/nsswitch.conf
-fi
-
-%preun
-if [ "$1" -eq 0 -a -f %{_sysconfdir}/nsswitch.conf ] ; then
-       %{__sed} -i -e '
-               /^\(passwd\|group\|ethers\|protocols\|rpc\|services\|shadow\|netgroup\|hosts\):/ !b
-               s/[[:blank:]]\+db\>//
-       ' %{_sysconfdir}/nsswitch.conf
-fi
-
+%post  -p /sbin/ldconfig
 %postun -p /sbin/ldconfig
 
 %files -f %{name}.lang
This page took 0.056667 seconds and 4 git commands to generate.