SPECS: scponly.spec - lua also for %post chroot
glen
glen at pld-linux.org
Sat Nov 8 13:57:49 CET 2008
Author: glen Date: Sat Nov 8 12:57:49 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- lua also for %post chroot
---- Files affected:
SPECS:
scponly.spec (1.17 -> 1.18)
---- Diffs:
================================================================
Index: SPECS/scponly.spec
diff -u SPECS/scponly.spec:1.17 SPECS/scponly.spec:1.18
--- SPECS/scponly.spec:1.17 Sat Nov 8 13:44:43 2008
+++ SPECS/scponly.spec Sat Nov 8 13:57:43 2008
@@ -76,8 +76,7 @@
Summary(pl.UTF-8): scponly wykonujące chroot
License: BSD-like
Group: Applications/Shells
-# + No idea due packaging system libraries
-Requires(post): grep
+# Requires: No idea due packaging system libraries
%description chroot
This package contains suid binary for scponly. As the scponly is
@@ -143,18 +142,11 @@
%lua_remove_etc_shells %{_sbindir}/%{name}
end
-%post chroot
-umask 022
-if [ ! -f /etc/shells ]; then
- echo '%{_sbindir}/scponlyc' > /etc/shells
-else
-if ! grep -q '^%{_sbindir}/scponlyc$' /etc/shells; then
- echo '%{_sbindir}/scponlyc' >> /etc/shells
- fi
-fi
+%post -p <lua> chroot
+%lua_add_etc_shells %{_sbindir}/scponlyc
# build ld.so.ccache
-/sbin/ldconfig -X -r %{_datadir}
+os.execute("/sbin/ldconfig -X -r %{_datadir}")
%preun -p <lua> chroot
if arg[2] == 0 then
@@ -213,6 +205,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.18 2008/11/08 12:57:43 glen
+- lua also for %post chroot
+
Revision 1.17 2008/11/08 12:44:43 glen
- update chroot files
- fix build on amd64
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/scponly.spec?r1=1.17&r2=1.18&f=u
More information about the pld-cvs-commit
mailing list