]> git.sur5r.net Git - bacula/rescue/blobdiff - rescue/linux/cdrom/Makefile.in
Updates
[bacula/rescue] / rescue / linux / cdrom / Makefile.in
index 83a0627dad8bb82b576ea4001de4fbc77d23ba14..22289c26a558265d0b161fe7c52ec69b99052275 100644 (file)
@@ -5,7 +5,6 @@
 
 .PATH:         .
 
-MKCDREC=@BUILD_DIR@/mkcdrec
 CWD=@BUILD_DIR@/linux/cdrom
 
 first_rule: all
@@ -21,6 +20,7 @@ iso:
          -b boot/isolinux/isolinux.bin -c boot/isolinux/boot.cat \
          -no-emul-boot -boot-load-size 4 -boot-info-table cdtree
 
+# not used
 remaster:
        rm -f bootcd.iso
        mkisofs -A "Bacula Rescue Disk" -V "Bacula Rescue Disk" \
@@ -28,6 +28,7 @@ remaster:
          -b isolinux/isolinux.bin -c isolinux/boot.cat \
          -no-emul-boot -boot-load-size 4 -boot-info-table cdimage
 
+# not used
 cdimage:
        makecdimage --type=@type@ --where=@where@
 
@@ -54,45 +55,11 @@ bacula: dummy
 copy-bacula:
        cp -a bacula/ cdimage/
 
-pre-mkcdrec:               
-       @echo
-       ./mkcdrec_rd    
-       @echo "Patching mkcdrec Config.sh for Bacula"
-       @mkdir -p tmp
-       @rm -f tmp/1 tmp/2 tmp/1
-       @cp ${MKCDREC}/Config.sh tmp/2
-       @echo "s%^BACULA_DIR.*$$%BACULA_DIR=${CWD}/bacula%g" >tmp/1
-       @sed -f tmp/1 tmp/2 >tmp/3
-       @echo "s%^BACULA_RESTORE.*$$%BACULA_RESTORE=\"y\"%g" >tmp/1
-       @sed -f tmp/1 tmp/3 >tmp/4
-       @echo "s%^DVD_Drive.*$$%DVD_Drive=0%g" >tmp/1
-       @sed -f tmp/1 tmp/4 >tmp/5
-       @echo "s%^USECOLOR.*$$%USECOLOR=n%g" >tmp/1
-       @sed -f tmp/1 tmp/5 >${MKCDREC}/Config.sh
-       @rm -rf tmp
-       @cp -f @BACULA_BIN@/bacula-fd bacula/bin
-       @cp -f @BACULA_SCRIPTS@/bacula-fd.conf bacula/bin
 
-main-mkcdrec: dummy
-       @echo " "
-       @echo "Doing make in mkcdrec directory. This may take some time and"
-       @echo "  produce a good amount of output"
-       @echo " "
-       @echo             
-       (cd ${MKCDREC}; make rescue)
-
-post-mkcdrec:
-       @echo "Cleaning up"
-       cp /tmp/CDrec.iso bootcd.iso
-       chmod 644 bootcd.iso
-       rm -f /tmp/CDrec.iso
-       rm -f custom-rd.img.bz2
 
-
-# This will build the old Bacula rescue
+# This will build the Bacula rescue
 all:   kernel binaries bacula initrd iso
 
-mkcdrec: kernel binaries bacula pre-mkcdrec main-mkcdrec post-mkcdrec
 
 copy-static-fd: kernel binaries static-bacula initrd iso
 
@@ -135,12 +102,57 @@ clean:
        @rm -f roottree/etc/modules.conf roottree/etc/syslog.conf
        @rm -rf roottree/etc/pam.d roottree/etc/ssh
        @rm -rf roottree/etc/security roottree/etc/init.d
+       @rm -rf roottree/etc/rc.d
        @rm -rf roottree/etc/udev roottree/etc/modprobe.conf
+       @rm -rf roottree/etc/dev.d roottre/etc/hotplug roottree/etc/modprobe.d
+       @rm -rf roottree/etc/modprobe.conf.local roottree/etc/hotplug
+       @rm -rf roottree/etc/sysconfig roottree/etc/syslog-ng
        @rm -rf roottree/bacula-*
        @rm -f cdtree/boot/isolinux/initrd.img
        @rm -f cdtree/boot/isolinux/isolinux.cfg
        @rm -f cdtree/boot/isolinux/vmlinuz
        @rm -f cdtree/boot/isolinux/map
        @(cd bacula; make distclean)
-       @(cd ${MKCDREC}; make clean)
-       @(cd ${MKCDREC}/busybox; make distclean)
+#      @(cd ${MKCDREC}; make clean)
+#      @(cd ${MKCDREC}/busybox; make distclean)
+
+
+#
+# This was the integration with mkcdrec, but I could never
+#  get it to work reliably.
+#
+MKCDREC=@BUILD_DIR@/mkcdrec
+mkcdrec: kernel binaries bacula pre-mkcdrec main-mkcdrec post-mkcdrec
+pre-mkcdrec:               
+       @echo
+       ./mkcdrec_rd    
+       @echo "Patching mkcdrec Config.sh for Bacula"
+       @mkdir -p tmp
+       @rm -f tmp/1 tmp/2 tmp/1
+       @cp ${MKCDREC}/Config.sh tmp/2
+       @echo "s%^BACULA_DIR.*$$%BACULA_DIR=${CWD}/bacula%g" >tmp/1
+       @sed -f tmp/1 tmp/2 >tmp/3
+       @echo "s%^BACULA_RESTORE.*$$%BACULA_RESTORE=\"y\"%g" >tmp/1
+       @sed -f tmp/1 tmp/3 >tmp/4
+       @echo "s%^DVD_Drive.*$$%DVD_Drive=0%g" >tmp/1
+       @sed -f tmp/1 tmp/4 >tmp/5
+       @echo "s%^USECOLOR.*$$%USECOLOR=n%g" >tmp/1
+       @sed -f tmp/1 tmp/5 >${MKCDREC}/Config.sh
+       @rm -rf tmp
+       @cp -f @BACULA_BIN@/bacula-fd bacula/bin
+       @cp -f @BACULA_SCRIPTS@/bacula-fd.conf bacula/bin
+
+main-mkcdrec: dummy
+       @echo " "
+       @echo "Doing make in mkcdrec directory. This may take some time and"
+       @echo "  produce a good amount of output"
+       @echo " "
+       @echo             
+       (cd ${MKCDREC}; make rescue)
+
+post-mkcdrec:
+       @echo "Cleaning up"
+       cp /tmp/CDrec.iso bootcd.iso
+       chmod 644 bootcd.iso
+       rm -f /tmp/CDrec.iso
+       rm -f custom-rd.img.bz2