Hello, Richard!
I appreciate that you mostly applied my patch that makes it possible to
install devfs to a clean directory and simplifies the rpm specfile.
One thing that you somehow missed from my patch is using "mkdir -p" so
that the necessary directories are created with their parent directories
if required.
Here's the patch. It's sufficient to make rpm happy :-)
--
Regards,
Pavel Roskin
---------------------------------------
--- GNUmakefile
+++ GNUmakefile
@@ -30,15 +30,15 @@
@if fgrep -q "Generic section: do not change" /etc/modules.conf ; then\
echo "First remove the generic devfs entries from
/etc/modules.conf"; exit 1; \
fi
- if [ ! -e $(SBINDIR) ]; then mkdir $(SBINDIR); fi
+ if [ ! -e $(SBINDIR) ]; then mkdir -p $(SBINDIR); fi
rm -f $(SBINDIR)/devfsd
install -s devfsd $(SBINDIR)/devfsd
- if [ ! -e $(MANDIR)/man5 ]; then mkdir $(MANDIR)/man5; fi
- if [ ! -e $(MANDIR)/man8 ]; then mkdir $(MANDIR)/man8; fi
+ if [ ! -e $(MANDIR)/man5 ]; then mkdir -p $(MANDIR)/man5; fi
+ if [ ! -e $(MANDIR)/man8 ]; then mkdir -p $(MANDIR)/man8; fi
-rm -f $(MANDIR)/*/devfsd.*
cp -p devfsd.8 $(MANDIR)/man8
cp -p devfsd.conf.5 $(MANDIR)/man5
- if [ ! -e $(CONFDIR) ]; then mkdir $(CONFDIR); fi
+ if [ ! -e $(CONFDIR) ]; then mkdir -p $(CONFDIR); fi
if [ ! -e $(CONFIG_FILE) ]; then cp -p devfsd.conf $(CONFIG_FILE); fi
@echo "Installing /etc/modules.devfs"
@sed "s/DEVFSD-VERSION/`grep '#define DEVFSD_VERSION' version.h | cut
-d'"' -f 2`/" modules.devfs > $(CONFDIR)/modules.devfs
---------------------------------------
|