]> git.sur5r.net Git - bacula/bacula/commitdiff
OSX installer: fix for a bug in 10.5 packagemaker, --id argument required
authorLorenz Schori <lo@znerol.ch>
Wed, 18 Nov 2009 20:22:00 +0000 (21:22 +0100)
committerEric Bollengier <eric@eb.homelinux.org>
Mon, 23 Nov 2009 22:27:05 +0000 (23:27 +0100)
bacula/platforms/osx/Makefile.in
bacula/platforms/osx/files/installer.pmdoc.in/01destdir.xml
bacula/platforms/osx/files/installer.pmdoc.in/index.xml

index 5a7da4ae18161436a7d3c02bc618cac78446f2d2..4a2c037da3b4a2bd155ba6db2aac6d08f2051378 100644 (file)
@@ -50,6 +50,7 @@ ifneq ($(CURDIR),$(CURSUB))
 endif
 
 PACKAGE_TITLE:=Bacula File Daemon ${BACULA_VERSION}
+PACKAGE_ID:=org.bacula.bacula-fd.pkg
 PACKAGE_DIR:=${PRODUCTS_DIR}/${PACKAGE_TITLE}
 PACKAGE_BUNDLE:=${PACKAGE_DIR}/${PACKAGE_TITLE}.pkg
 PACKAGE_DMG:=${PRODUCTS_DIR}/${PACKAGE_TITLE}.dmg
@@ -80,7 +81,8 @@ INFILE_SUBST=\
   -e "s,@PREFIX@,${BACULA_PREFIX},g" \
   -e "s,@BACULA_VERSION@,${BACULA_VERSION},g" \
   -e "s,@FD_CONF@,${BACULA_FD_CONF},g" \
-  -e "s,@BACULA_DESTDIR@,${BACULA_DESTDIR},g"
+  -e "s,@BACULA_DESTDIR@,${BACULA_DESTDIR},g" \
+  -e "s,@PACKAGE_ID@,${PACKAGE_ID},g"
 
 dmg: pkg
        hdiutil create -srcfolder "${PACKAGE_DIR}" "${PACKAGE_DMG}"
@@ -88,7 +90,7 @@ dmg: pkg
 pkg: ${BACULA_DESTDIR} ${BACULA_PMDOC} ${WORKING_DIR}/resources
        mkdir -p "${PACKAGE_DIR}"
 
-       ${PM} --doc "${BACULA_PMDOC}" --out "${PACKAGE_BUNDLE}"
+       ${PM} --doc "${BACULA_PMDOC}" --id "${PACKAGE_ID}" --out "${PACKAGE_BUNDLE}"
 
        cp ${WORKING_DIR}/resources/ReadMe.html "${PACKAGE_DIR}/ReadMe.html"
 
index 35c2877e64d5a754f1cdfcc0676109410722e8e4..b8a8cfadc89cf03a62c8165bde6bc0d8736850fc 100644 (file)
@@ -1,7 +1,7 @@
 <?xml version="1.0"?>
 <pkgref spec="1.12" uuid="E3A20DCD-888A-4211-8318-BF9CAA10B769">
   <config>
-    <identifier>org.bacula.bacula-fd.pkg</identifier>
+    <identifier>@PACKAGE_ID@</identifier>
     <version>@BACULA_VERSION@</version>
     <description/>
     <post-install type="none"/>
index 37ac4647db46fc0fb09f8967af0f8557475f9e05..04db0671d0b11d4d603753329b92d331503729a6 100644 (file)
@@ -13,7 +13,7 @@
   </distribution>
   <contents>
     <choice title="destdir" id="choice0" starts_selected="true" starts_enabled="true" starts_hidden="false">
-      <pkgref id="org.bacula.bacula-fd.pkg"/>
+      <pkgref id="@PACKAGE_ID@"/>
     </choice>
   </contents>
   <resources bg-scale="none" bg-align="topleft">