summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xusr/share/mirror/build/get-files11
1 files changed, 6 insertions, 5 deletions
diff --git a/usr/share/mirror/build/get-files b/usr/share/mirror/build/get-files
index 689c186..6fb7125 100755
--- a/usr/share/mirror/build/get-files
+++ b/usr/share/mirror/build/get-files
@@ -15,12 +15,13 @@ find * -mindepth 1 ! -name "${package}.spec.$$.swp" \
! -type d \
! -regex '.*.swp' \
! -regex '.*?DEBIAN.*?' \
- | sed -e '
+ | sed -r -e '
s/^/\//;
-s/\(.*\.txt\)/%doc %attr(444, -, -) \1/;
-s/\(.*\.\(conf\|cron\)\|.*sudoers\.d\|\/usr\/share\/mirror\/scripts\/.\+\)/%config \1/;
-s/\(.*bin.*\)/%verify(link) \1/;
-s/\(.*\)\.py$/\1\.py\n\1\.pyc\n\1\.pyo/;
+s/(.*\.txt|usr\/share\/doc\/.*)/%doc %attr(444, -, -) \1/
+s/(.*bin.*)/%verify(link) \1/;
+s/(.*)\.py$/\1\.py\n\1\.pyc\n\1\.pyo/;
+s/(.*\/sudoers\.d\/.*)/%attr(440, root, root) \1/;
+s/(.*\.(conf|cron)|.*sudoers\.d|\/usr\/share\/mirror\/scripts\/.+)/%config \1/;
'
;;
deb)
bgstack15