aboutsummaryrefslogtreecommitdiff
path: root/system/xen/xen.SlackBuild
diff options
context:
space:
mode:
authormario <mario@slackverse.org>2013-03-03 02:02:50 -0600
committerRobby Workman <rworkman@slackbuilds.org>2013-03-03 02:02:50 -0600
commitd0ac53e98ce04bbac59956409b50d4578408bfe2 (patch)
treeb9af813157c21f2a131aa58eb2b6beeb496e4a03 /system/xen/xen.SlackBuild
parente5b80bd2a65fd01ad8b459a13776715c5a244ce5 (diff)
system/xen: kill obsolete udev rules
Added patch to remove some obsolete udev rules that kept flooding syslog. Script now keeps ps/pdf docs in case they get built, if user has prerequisites.. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'system/xen/xen.SlackBuild')
-rw-r--r--system/xen/xen.SlackBuild5
1 files changed, 4 insertions, 1 deletions
diff --git a/system/xen/xen.SlackBuild b/system/xen/xen.SlackBuild
index 7a6f4059d5266..d9fcaf51b705f 100644
--- a/system/xen/xen.SlackBuild
+++ b/system/xen/xen.SlackBuild
@@ -80,6 +80,7 @@ find . \
# Fix some stupid things
patch -p1 <$CWD/patches/configuration_goes_to_system_etc.diff
patch -p1 <$CWD/patches/symlinks_instead_of_hardlinks.diff
+patch -p1 <$CWD/patches/remove_obsolete_udev_rules.diff
# Let's not download stuff during the build...
patch -p1 <$CWD/patches/use_already_present_ipxe.diff
@@ -139,7 +140,9 @@ mkdir -p $PKG/lib/udev/rules.d
mv $PKG/etc/udev/rules.d/xen*.rules $PKG/lib/udev/rules.d/
# Remove empty directories
-rmdir $PKG/etc/{rc.d/init.d,udev/rules.d,udev} $PKG/usr/doc/$PRGNAM-$VERSION/{pdf,ps}
+rmdir $PKG/etc/{rc.d/init.d,udev/rules.d,udev}
+# Only if they are really empty
+rmdir --ignore-fail-on-non-empty $PKG/usr/doc/$PRGNAM-$VERSION/{pdf,ps}
# Append .new to config files
for i in $PKG/etc/xen/{*.conf,*.sxp,*.xml} ; do mv $i $i.new ; done