changes in package generation
authorkrzsas <krzsas@gmail.com>
Thu, 29 Mar 2007 14:29:33 +0000 (14:29 +0000)
committerkrzsas <krzsas@gmail.com>
Thu, 29 Mar 2007 14:29:33 +0000 (14:29 +0000)
git-svn-id: file:///svnroot/mdictionary/trunk@114 5bde0345-f819-0410-ac75-e5045f9217cc

13 files changed:
Makefile
debian/changelog [new file with mode: 0644]
debian/compat [new file with mode: 0644]
debian/control [new file with mode: 0644]
debian/copyright [new file with mode: 0644]
debian/docs [new file with mode: 0644]
debian/files [new file with mode: 0644]
debian/postinst [new file with mode: 0755]
debian/postrm [new file with mode: 0755]
debian/preinst [new file with mode: 0755]
debian/prerm [new file with mode: 0755]
debian/rules [new file with mode: 0755]
debian/whitestork.substvars [new file with mode: 0644]

index 3f1eb52..04906cb 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -17,6 +17,7 @@ MANAGER = ${SOURCE}/manager
 DBUS = ${SOURCE}/dbus_wrapper
 BOOKMARKS:=bdb
 BOOKMARKS_DIR = ${SOURCE}/bookmarks/${BOOKMARKS}
+DESTDIR = .
 
 ifeq (${BOOKMARKS}, sql)
        SQLITE:=-DSQLITE=0
@@ -33,8 +34,8 @@ STARDICT = stardict
 APP_NAME = whitestork
 
 #versions
-MAJOR_VER = 0
-MINOR_VER = 6
+MAJOR_VER = 1
+MINOR_VER = 0
 RELEASE_MAJOR_VER = 1
 RELEASE_MINOR_VER = 0
 RELEASE_PATCH_VER = 0
@@ -52,24 +53,27 @@ META_PACK_NAME = whitestorkdictionary
 
 GUI_EXECUTABLE = ${BINARIES}/WhiteStork
 GUI_SERVICEFILE = org.maemo.WhiteStorkGui.service
-GUI_DIRS = ${PACKAGES}/${GUI_PACK_NAME}/usr/bin ${PACKAGES}/${GUI_PACK_NAME}/usr/share/applications/hildon ${PACKAGES}/${GUI_PACK_NAME}/usr/share/doc/whitestorkgui ${PACKAGES}/${GUI_PACK_NAME}/usr/share/pixmaps ${PACKAGES}/${GUI_PACK_NAME}/usr/share/dbus-1/services ${PACKAGES}/${GUI_PACK_NAME}/usr/share/locale  
+GUI_DIRS = ${DESTDIR}/usr/bin ${DESTDIR}/usr/share/applications/hildon ${DESTDIR}/usr/share/doc/whitestorkgui ${DESTDIR}/usr/share/pixmaps ${DESTDIR}/usr/share/dbus-1/services ${DESTDIR}/usr/share/locale  
 GUI_DBUS = ${DATA}/other/${GUI_SERVICEFILE}
 GUI_ICONS = ${DATA}/icons/whitestork_icon.png ${DATA}/icons/whitestork.png ${DATA}/icons/ws_top.png ${DATA}/icons/ws_tra.png
-GUI_LOCALE = ${DATA}/locale/en_GB ${DATA}/locale/pl_PL
+GUI_LOCALE = ${DATA}/locale/out/
 GUI_DOC = ${DATA}/docs/${GUI_PACK_NAME}/
 GUI_OTHER = ${DATA}/other/whitestork.desktop
 
 MNG_EXECUTABLE = ${BINARIES}/WhiteStorkManager 
 MNG_SERVICEFILE = org.maemo.WhiteStorkManager.service
 MNG_LIB = ${BINARIES}/ws_bookmark.so
-MNG_DIRS = ${PACKAGES}/${MNG_PACK_NAME}/usr/bin ${PACKAGES}/${MNG_PACK_NAME}/usr/lib/WhiteStork ${PACKAGES}/${MNG_PACK_NAME}/usr/share/dbus-1/services  ${PACKAGES}/${MNG_PACK_NAME}/usr/share/WhiteStork ${PACKAGES}/${MNG_PACK_NAME}/usr/share/doc/${MNG_PACK_NAME}
+MNG_DIRS = ${DESTDIR}/usr/bin ${DESTDIR}/usr/lib/WhiteStork ${DESTDIR}/usr/share/dbus-1/services  ${DESTDIR}/usr/share/WhiteStork ${DESTDIR}/usr/share/doc/${MNG_PACK_NAME}
 MNG_DBUS = ${DATA}/other/${MNG_SERVICEFILE}
 MNG_OTHER = ${DATA}/dictionaries 
+MNG_DICT1 = ${DATA}/dictionaries/elements/dict.cache ${DATA}/dictionaries/elements/dict.xdxf ${DESTDIR}/usr/share/WhiteStork/dictionaries/elements/
+MNG_DICT2 = ${DATA}/dictionaries/us-en/dict.xdxf ${DESTDIR}/usr/share/WhiteStork/dictionaries/us-en/
+MNG_DICT_DIRS = ${DESTDIR}/usr/share/WhiteStork/dictionaries/elements/ ${DESTDIR}/usr/share/WhiteStork/dictionaries/us-en/
 MNG_BOOKMARKS = ${DATA}/bookmarks/${BOOKMARKS}/*
 MNG_DOC = ${DATA}/docs/${MNG_PACK_NAME}/
 
 PLUGINS_LIB = ${BINARIES}/engine_*.so
-PLUGINS_DIRS = ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/lib/WhiteStork ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/doc/${PLUGINS_PACK_NAME} ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/pixmaps
+PLUGINS_DIRS = ${DESTDIR}/usr/lib/WhiteStork ${DESTDIR}/usr/share/doc/${PLUGINS_PACK_NAME} ${DESTDIR}/usr/share/pixmaps
 PLUGINS_ICONS = ${DATA}/icons/engine_xdxf_icon.png
 PLUGINS_DOC = ${DATA}/docs/${PLUGINS_PACK_NAME}/
 
@@ -99,11 +103,6 @@ LOG_INST = ${LOG_DIR}/install.log
 first: build
        @echo -e -n ""
 
-#create new tagged version from current trunk
-
-# update-version:
-#              @echo -e -n "#ifndef _VERSION_H\n#define _VERSION_H\n\n#define WS_VERSION \"${APP_VER}\"\n#endif\n"  > ${VERSION_FILE}
-
 tag-version: clean
                @install -d ${REP_TAG}/${APP_NAME}-${APP_VER}
                @tar -czf ${REP_TAG}/${APP_NAME}-${APP_VER}/${APP_NAME}-${APP_VER}.tar.gz ../trunk/* --exclude .svn
@@ -137,13 +136,9 @@ localization:
                @echo -e -n "Generating locale...\n"
                @echo -e -n "Generating locale...\n" > ${LOG_BUILD}
                
-               @./generate_locale ${DATA}/locale ${PACKAGES}/${GUI_PACK_NAME}/usr/share/locale
-
-localization2:
-               @install -d ${DATA}/locale/en_GB/LC_MESSAGES/
-               @install -d ${DATA}/locale/pl_PL/LC_MESSAGES/
-               @msgfmt ${DATA}/locale/en_GB.po -o ${DATA}/locale/en_GB/LC_MESSAGES/whitestork.mo
-               @msgfmt ${DATA}/locale/pl_PL.po -o ${DATA}/locale/pl_PL/LC_MESSAGES/whitestork.mo
+               @./generate_locale ${DATA}/locale/ ${GUI_LOCALE}
+               @echo -e -n "Locale generation successfully completed...\n"
+               @echo -e -n "Locale generation successfully completed...\n" > ${LOG_BUILD}
 
 build: pre-build  ${BINARIES}/ws_dbus.o ${BINARIES}/WhiteStork ${BINARIES}/WhiteStorkManager ${BINARIES}/ws_bookmark.so plugins
                @echo -e -n "\nBuilding WhiteStork is finished.\n"
@@ -212,6 +207,7 @@ clean: clean-logs
                @-cd ${MANAGER} && make clean >> ../../${LOG_CLEAN} 2>> ../../${LOG_CLEAN}
                @-make -C ${MANAGER} clean >> ${LOG_CLEAN} 2>> ${LOG_CLEAN}
                @find src/bookmarks/ -mindepth 1 -maxdepth 1 -type d -not -name .svn -exec make -C {} clean >> ${LOG_CLEAN} 2>> ${LOG_CLEAN} \;
+               @-rm -rf ${GUI_LOCALE}*
                
 #              @-cd ${GUI} && make clean >> ../../${LOG_CLEAN} 2>> ../../${LOG_CLEAN}
 #              @-cd ${DBUS} && make clean >> ../../${LOG_CLEAN} 2>> ../../${LOG_CLEAN}
@@ -295,140 +291,45 @@ clean-temp:
                @-fakeroot rm -f /usr/lib/WhiteStork/engine_stardict.so
 
                gconftool-2 --recursive-unset /apps/maemo/WhiteStork
-run-deb:
-               @run-standalone.sh WhiteStork &
 
-debs: pre-debs mng-deb plugins-deb gui-deb meta-package
-               @echo -e -n "Building debian packages finished.\n"
-
-mng-deb: ${BINARIES}/ws_dbus.o ${BINARIES}/WhiteStorkManager ${BINARIES}/ws_bookmark.so
-               @echo -e -n "**-->Making manager package...\n"
-               @echo -e -n "**-->Making manager package...\n" >> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @cp -rf ${DATA}/package_contents/${MNG_PACK_NAME} ${PACKAGES}
-               
+install:       localization ${BINARIES}/ws_dbus.o ${BINARIES}/WhiteStorkManager ${BINARIES}/ws_bookmark.so ${BINARIES}/ws_dbus.o ${BINARIES}/WhiteStork plugins
                @install -d ${MNG_DIRS}
-               @cp ${MNG_EXECUTABLE} ${PACKAGES}/${MNG_PACK_NAME}/usr/bin
-               @cp ${MNG_LIB} ${PACKAGES}/${MNG_PACK_NAME}/usr/lib/WhiteStork
-               @cp ${MNG_DBUS} ${PACKAGES}/${MNG_PACK_NAME}/usr/share/dbus-1/services
-               @find  ${MNG_DOC} -type f -not -name copyright -not -path *.svn* -exec cp {} ${PACKAGES}/${MNG_PACK_NAME}/usr/share/doc/${MNG_PACK_NAME} \;
-               @gzip -r --best ${PACKAGES}/${MNG_PACK_NAME}/usr/share/doc/${MNG_PACK_NAME}
-               @cp ${MNG_DOC}/copyright ${PACKAGES}/${MNG_PACK_NAME}/usr/share/doc/${MNG_PACK_NAME}
-               @cp -rf ${MNG_OTHER} ${PACKAGES}/${MNG_PACK_NAME}/usr/share/WhiteStork
-               @install -d ${PACKAGES}/${MNG_PACK_NAME}/usr/share/WhiteStork/dictionaries/bookmarks
-               @cp -rf ${MNG_BOOKMARKS} ${PACKAGES}/${MNG_PACK_NAME}/usr/share/WhiteStork/dictionaries/bookmarks
+               @cp ${MNG_EXECUTABLE} ${DESTDIR}/usr/bin
+               @cp ${MNG_LIB} ${DESTDIR}/usr/lib/WhiteStork
+               @cp ${MNG_DBUS} ${DESTDIR}/usr/share/dbus-1/services
+#              @find  ${MNG_DOC} -type f -not -path *.svn* -exec cp {} ${DESTDIR}/usr/share/doc/${MNG_PACK_NAME} \;
                
-               @-find ${PACKAGES}/${MNG_PACK_NAME} -type d -name .svn -exec rm -rf {} \; >> ${LOG_DEBS} 2>> ${LOG_DEBS}
+               @install -d ${MNG_DICT_DIRS}
+               @cp ${MNG_DICT1}
+               @cp ${MNG_DICT2}
                
-               @sed 's/Version:/Version: '${APP_VER}-${PACK_VER}'/ ' ${PACKAGES}/${MNG_PACK_NAME}/DEBIAN/control > ${PACKAGES}/${MNG_PACK_NAME}/DEBIAN/control_backup
-               @sed 's/Installed-Size:/Installed-Size: '`du -s ${PACKAGES}/${MNG_PACK_NAME} | awk {'print $$1'}`'/ ' ${PACKAGES}/${MNG_PACK_NAME}/DEBIAN/control_backup > ${PACKAGES}/${MNG_PACK_NAME}/DEBIAN/control
-               @rm ${PACKAGES}/${MNG_PACK_NAME}/DEBIAN/control_backup
+               @install -d ${DESTDIR}/usr/share/WhiteStork/dictionaries/bookmarks
+               @cp -rf ${MNG_BOOKMARKS} ${DESTDIR}/usr/share/WhiteStork/dictionaries/bookmarks
                
-               @cd ${PACKAGES}/${MNG_PACK_NAME} && find -path '*DEBIAN*' -prune -o -type f -exec md5sum {} >> DEBIAN/md5sums \;
-               @cd ${PACKAGES} && fakeroot dpkg-deb --build ${MNG_PACK_NAME} ../${MNG_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb >> ../${LOG_DEBS} 2>> ../${LOG_DEBS}
-
-gui-deb: clean ${BINARIES}/ws_dbus.o ${BINARIES}/WhiteStork localization
-               @echo -e -n "**-->Making whitestork GUI package...\n"
-               @echo -e -n "**-->Making whitestork GUI package...\n" >> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @cp -rf ${DATA}/package_contents/${GUI_PACK_NAME} ${PACKAGES}
                @install -d ${GUI_DIRS}
+               @cp ${GUI_EXECUTABLE} ${DESTDIR}/usr/bin
+               @cp ${GUI_ICONS} ${DESTDIR}/usr/share/pixmaps
+               @cp ${GUI_DBUS} ${DESTDIR}/usr/share/dbus-1/services
+               @cp ${GUI_OTHER} ${DESTDIR}/usr/share/applications/hildon
+               @cp -a ${GUI_LOCALE}* ${DESTDIR}/usr/share/locale/
                
-               @cp ${GUI_EXECUTABLE} ${PACKAGES}/${GUI_PACK_NAME}/usr/bin
-               @cp ${GUI_ICONS} ${PACKAGES}/${GUI_PACK_NAME}/usr/share/pixmaps
-               @cp ${GUI_DBUS} ${PACKAGES}/${GUI_PACK_NAME}/usr/share/dbus-1/services
-               @cp ${GUI_OTHER} ${PACKAGES}/${GUI_PACK_NAME}/usr/share/applications/hildon
-               
-               @find  ${GUI_DOC} -type f -not -name copyright -not -path *.svn* -exec cp {} ${PACKAGES}/${GUI_PACK_NAME}/usr/share/doc/${GUI_PACK_NAME} \;
+#              @find  ${GUI_DOC} -type f -not -path *.svn* -exec cp {} ${DESTDIR}/usr/share/doc/${GUI_PACK_NAME} \;
 
-               @gzip -r --best ${PACKAGES}/${GUI_PACK_NAME}/usr/share/doc/${GUI_PACK_NAME}
-               
-               @cp ${GUI_DOC}/copyright ${PACKAGES}/${GUI_PACK_NAME}/usr/share/doc/${GUI_PACK_NAME}
-               
-               @-find ${PACKAGES}/${GUI_PACK_NAME} -name .svn -exec rm -rf {} \;>> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @sed 's/Version:/Version: '${APP_VER}-${PACK_VER}'/ ' ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/control > ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/control_backup
-               @sed 's/Installed-Size:/Installed-Size: '`du -s ${PACKAGES}/${GUI_PACK_NAME}| awk {'print $$1'}`'/ ' ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/control_backup > ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/control
-               
-               @rm ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/control_backup
-               
-#@touch ${PACKAGES}/${GUI_PACK_NAME}/DEBIAN/md5sums
-               @cd ${PACKAGES}/${GUI_PACK_NAME} && find -path '*DEBIAN*' -prune -o -type f -exec md5sum {} >> DEBIAN/md5sums \;
-               @cd ${PACKAGES} && fakeroot dpkg-deb --build ${GUI_PACK_NAME} ../${GUI_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb >> ../${LOG_DEBS} 2>> ../${LOG_DEBS}
-
-
-plugins-deb: clean plugins
-               @echo -e -n "**-->Making whitestorkplugins package...\n"
-               @echo -e -n "**-->Making whitestorkplugins package...\n" >> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @cp -rf ${DATA}/package_contents/${PLUGINS_PACK_NAME} ${PACKAGES}
                @install -d ${PLUGINS_DIRS}
-               @cp ${PLUGINS_LIB} ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/lib/WhiteStork
-               @cp ${PLUGINS_ICONS} ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/pixmaps
+               @cp ${PLUGINS_LIB} ${DESTDIR}/usr/lib/WhiteStork
+               @cp ${PLUGINS_ICONS} ${DESTDIR}/usr/share/pixmaps
                
-               @find  ${PLUGINS_DOC} -type f -not -name copyright -not -path *.svn* -exec cp {} ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/doc/${PLUGINS_PACK_NAME} \;
-
-               @gzip -r --best ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/doc/${PLUGINS_PACK_NAME}
+#              @find  ${PLUGINS_DOC} -type f -not -path *.svn* -exec cp {} ${DESTDIR}/usr/share/doc/${PLUGINS_PACK_NAME} \;
                
-               @cp ${PLUGINS_DOC}/copyright ${PACKAGES}/${PLUGINS_PACK_NAME}/usr/share/doc/${PLUGINS_PACK_NAME}
-               
-               @-find ${PACKAGES}/${PLUGINS_PACK_NAME} -name .svn -exec rm -rf {} \;>> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @sed 's/Version:/Version: '${APP_VER}-${PACK_VER}'/ ' ${PACKAGES}/${PLUGINS_PACK_NAME}/DEBIAN/control > ${PACKAGES}/${PLUGINS_PACK_NAME}/DEBIAN/control_backup
-               @sed 's/Installed-Size:/Installed-Size: '`du -s ${PACKAGES}/${PLUGINS_PACK_NAME} | awk {'print $$1'}`'/ ' ${PACKAGES}/${PLUGINS_PACK_NAME}/DEBIAN/control_backup > ${PACKAGES}/${PLUGINS_PACK_NAME}/DEBIAN/control
-               
-               @rm ${PACKAGES}/${PLUGINS_PACK_NAME}/DEBIAN/control_backup
-               
-               @cd ${PACKAGES}/${PLUGINS_PACK_NAME} && find -path '*DEBIAN*' -prune -o -type f -exec md5sum {} >> DEBIAN/md5sums \;
-               @cd ${PACKAGES}  &&  fakeroot dpkg-deb --build ${PLUGINS_PACK_NAME} ../${PLUGINS_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb>> ../${LOG_DEBS}  2>> ../${LOG_DEBS}
 
-               
-eng-deb: plugins-deb
-
-debs-i: install
-               
-               
-install: clean-inst-log uninstall eng-deb-i mng-deb-i gui-deb-i
+install_deb: clean-inst-log uninstall eng-deb-i mng-deb-i gui-deb-i
                @echo -e -n "All packages have been installed/reinstalled.\n"
 
 clean-inst-log: 
                @echo -n "" > ${LOG_INST}
 
-debs-ir: debs-i
-               @echo -e -n "Restarting af-sb-init.sh <af-sb-init.sh restart>...\n"
-               @af-sb-init.sh restart
-               @echo -e -n "Now You can test Your new WhiteStork :D .. enjoy :-)\n"
-
-mng-deb-i: 
-               @echo -e -n "Installing new package MANAGER...\n"
-               @fakeroot dpkg -i ${MNG_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb  >> ${LOG_INST} 2>> ${LOG_INST}
-
-gui-deb-i: 
-               @echo -e -n "Installing new package GUI...\n"
-               @fakeroot dpkg -i ${GUI_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb  >> ${LOG_INST} 2>> ${LOG_INST}
-
-eng-deb-i: plugins-deb-i
-
-plugins-deb-i: 
-               @echo -e -n "Installing WhiteStork's plugin package...\n"
-               @fakeroot dpkg -i ${PLUGINS_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb  >> ${LOG_INST} 2>> ${LOG_INST}
-
-bookmark-deb-i: 
-               @echo -e -n "Removing old BOOKMARKS ENGINE...\n"
-               @fakeroot dpkg -r whitestorkbookmarks  >/dev/null 2>/dev/null           
-               @echo -e -n "Installing new package whitestorkbookmarks...\n"
-               @fakeroot dpkg -i ${BOOKMARKS_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb  >> ${LOG_INST} 2>> ${LOG_INST}
-               
-
-
-pre-debs: clean
-               @echo -e -n "Making *.deb packages...\nPlease wait...\n"
-               @echo -e -n "" > ${LOG_DEBS}
-
 uninstall:
-               @-fakeroot dpkg --purge whitestorkgui
                @-fakeroot dpkg --purge whitestork
-               @-fakeroot dpkg --purge whitestorkplugins
 #              @-fakeroot dpkg --purge whitestorkdictionary
 
 display: access
@@ -448,34 +349,10 @@ release-package: clean debs meta-package
 
 snapshot: tag-version send-last
 
-meta-package:  
-               @echo -e -n "**-->Making whitestork meta package...\n"
-               @echo -e -n "**-->Making whitestork meta package...\n" >> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @install -d ${META_DIRS}
-               
-               @cp -rf ${DATA}/package_contents/${META_PACK_NAME} ${PACKAGES}
-               
-               @find  ${META_DOC} -type f -not -name copyright -not -path *.svn* -exec cp {} ${PACKAGES}/${META_PACK_NAME}/usr/share/doc/${META_PACK_NAME}/ \;
-               
-               @gzip -r --best ${PACKAGES}/${META_PACK_NAME}/usr/share/doc/${META_PACK_NAME}
-               @cp ${META_DOC}/copyright ${PACKAGES}/${META_PACK_NAME}/usr/share/doc/${META_PACK_NAME}
-               
-               @-find ${PACKAGES}/${META_PACK_NAME} -name .svn -exec rm -rf {} \;>> ${LOG_DEBS} 2>> ${LOG_DEBS}
-               
-               @sed 's/Version:/Version: '${APP_VER}-${PACK_VER}'/ ' ${PACKAGES}/${META_PACK_NAME}/DEBIAN/control > ${PACKAGES}/${META_PACK_NAME}/DEBIAN/control_backup
-               @sed 's/Installed-Size:/Installed-Size: '`du -s ${PACKAGES}/${META_PACK_NAME} | awk {'print $$1'}`'/ ' ${PACKAGES}/${META_PACK_NAME}/DEBIAN/control_backup > ${PACKAGES}/${META_PACK_NAME}/DEBIAN/control
-               
-               @rm ${PACKAGES}/${META_PACK_NAME}/DEBIAN/control_backup
-               
-               @cd ${PACKAGES}/${META_PACK_NAME} && find -path '*DEBIAN*' -prune -o -type f -exec md5sum {} >> DEBIAN/md5sums \;
-               @cd ${PACKAGES}  &&  fakeroot dpkg-deb --build ${META_PACK_NAME} ../${META_PACK_NAME}_${APP_VER}-${PACK_VER}_${ARCH}.deb>> ../${LOG_DEBS}  2>> ../${LOG_DEBS}
-
 repo:  release-package meta-package
 
        @rm -rf ${DEB_REP_DIR}
        @./generate_repo ${DEB_REP_DIR}
        
-test:  
-       @echo ${SQLITE}
-       
+package: clean
+       dpkg-buildpackage -rfakeroot
diff --git a/debian/changelog b/debian/changelog
new file mode 100644 (file)
index 0000000..9f8c9de
--- /dev/null
@@ -0,0 +1,6 @@
+whitestork (1.0.0-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- unknown <Krzysztof.Sasiak@comarch.com>  Thu, 29 Mar 2007 14:14:47 +0200
+
diff --git a/debian/compat b/debian/compat
new file mode 100644 (file)
index 0000000..b8626c4
--- /dev/null
@@ -0,0 +1 @@
+4
diff --git a/debian/control b/debian/control
new file mode 100644 (file)
index 0000000..4e27a9d
--- /dev/null
@@ -0,0 +1,40 @@
+Source: whitestork
+Section: unknown
+Priority: extra
+Maintainer: Krzysztof Sasiak <Krzysztof.Sasiak@comarch.com>
+Build-Depends: debhelper (>= 4)
+
+Package: whitestork
+Version: 1.0.0-1
+Section: user/office
+Priority: optional
+Architecture: all   
+Installed-Size:  
+Maintainer: Krzysztof Sasiak <Krzysztof.Sasiak@comarch.com>
+Depends: libexpat1 (>= 1.95.8), whitestork (>= 0.1.0), libdb1 (>= 1.85.4-osso4)
+Maintainer: ComArch S.A. <contact@comarch.com>
+Description: Multilingual dictionary.
+ WhiteStork Multilingual Dictionary is a very functional
+ application allowing the use of many dictionary engines.
+ You can either download them from our homepage at 
+ http://garage.maemo.org, or write your own, provided
+ that You stick to the API (also available on our homepage).
+ The graphical user interface of our application can also 
+ be replaced by a product of Your own programming skills. 
+ This package contains all three whitestork modules that is:
+ gui, engines and plugins.
+ Copyright 2006, ComArch S.A. 
+Maemo-Icon-26: 
+ iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAYAAACpSkzOAAAABmJLR0QA/wD/AP+gvaeTAAAACXBI
+ WXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH1wEJDBUeRyfCHgAAAk5JREFUSMftlk9LVGEUxn937lzv
+ nROjZDOpYdg/E3XQoiCEsk1R0CosXPUJ2rVp0baP0Aco2rRxE0FhRFGRmzbRH9IW0SJBLFKpR67j
+ eFv4DkyTOtMoLaKzet/3POc8nHuf+7wX/rXwGqyLgHNuHUdRNJFKpeYlLa9X4NfZuAXYAWSjKOpK
+ kmQoSZK7wAhwC7ji+35zEASFIAi+FItFrTXRNiAPcAT25+AQwGHo7YQ+gD2wtxXaJ0GXff+8SqUs
+ MA58BHLAJUAAYRimfN9/Imm2kig9BFd7YdQ1TI/CvnIyB7RWgK+H4TXF8bibZAWYcSkBYwBxHI+Y
+ 2XB5v947SgO95c0p6M9DD0AHtN3JZCamFxdvA4XVIwQ0A+/ddC1Aj5ntljTWsHLMrNvMBty2GTgI
+ WBXmuJm1bVp1ZtYNDLhp5ipSeSAAnkua2Sp5Y2ZZ4IIj+wBMSiquh083QNAGDALHHEE38G4jkron
+ MrPTQNbhZ4BXVZAunGiAJeCRJNVNZGYF1+ChpJPAV+BFjZpgVbD8kPS0JpEjKUqarDjuAC669Sfg
+ fsUUv0Qmk9npeV6/pMe1iEZqfAtp4Kzr0bRGfiUMw3bf929KWkxvwpCXgXsbAXzfP1P209QGuFkz
+ y29C/k1AIOl7PWIYBmLgpaTSH5D0ONk/KF8dXh1FncBR9wjeAguSpqsw24F8LkkKyxDOed5rSW8a
+ dgYz63PGuasq9e3G0tLgiVLp2YEkWfBgasssqDqS1atjCojXIkr9rX+G/0QNR3oLe30G5p1j/BY/
+ AaknsXLnUsw8AAAAAElFTkSuQmCC
diff --git a/debian/copyright b/debian/copyright
new file mode 100644 (file)
index 0000000..80394cb
--- /dev/null
@@ -0,0 +1,15 @@
+This package was debianized by Krzysztof Sasiak <Krzysztof.Sasiak@comarch.com> on
+Thu, 29 Mar 2007 13:28:58 +0200.
+
+It was downloaded from https://garage.maemo.org
+
+Upstream Author: WhiteStork development team
+
+Copyright: Comarch 2006
+
+License:
+
+All components are either under the GPL or LGPL. The complete text of the GPL and LGPL licenses can be found in the /usr/share/common-licenses/GPL and /usr/share/common-licenses/LGPL files.
+
+The Debian packaging is (C) 2007, Krzysiek Sasiak <Krzysztof.Sasiak@comarch.com> and
+is licensed under the GPL, see `/usr/share/common-licenses/GPL'.
diff --git a/debian/docs b/debian/docs
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/debian/files b/debian/files
new file mode 100644 (file)
index 0000000..7a4004a
--- /dev/null
@@ -0,0 +1 @@
+whitestork_1.0.0-1_all.deb user/office optional
diff --git a/debian/postinst b/debian/postinst
new file mode 100755 (executable)
index 0000000..b7966e7
--- /dev/null
@@ -0,0 +1,29 @@
+#!/bin/sh
+
+echo -e "Postinstalling actions..." 
+
+if [ "$1" != "upgrade" ]
+then
+# End automatically added section
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/elements/name "Elements Database"'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/elements/path "/usr/share/WhiteStork/dictionaries/elements"'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/elements/active true'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/elements/optimized true'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/us-en/name "American - English Dictionary"'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/us-en/path "/usr/share/WhiteStork/dictionaries/us-en"'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/us-en/active true'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/us-en/optimized false'
+
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Engines/bookmarks/path "/usr/lib/WhiteStork/ws_bookmark.so"'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/name "Bookmarks"'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/path "/usr/share/WhiteStork/dictionaries/bookmarks"'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/active false'
+su $USER -c 'gconftool-2 --type bool --set /apps/maemo/WhiteStork/Dictionaries/bookmarks/optimized true'
+chmod -R 0777 /usr/share/WhiteStork/dictionaries
+
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Engines/xdxf/path "/usr/lib/WhiteStork/engine_xdxf.so"'
+su $USER -c 'gconftool-2 --type string --set /apps/maemo/WhiteStork/Engines/stardict/path "/usr/lib/WhiteStork/engine_stardict.so"'
+
+maemo-select-menu-location whitestork.desktop
+
+fi
\ No newline at end of file
diff --git a/debian/postrm b/debian/postrm
new file mode 100755 (executable)
index 0000000..75a3c55
--- /dev/null
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+echo -e "Postremoving actions..."
+su $USER -c 'rm -f /etc/others-menu/extra_applications/0112_whitestorkgui.desktop' ;
\ No newline at end of file
diff --git a/debian/preinst b/debian/preinst
new file mode 100755 (executable)
index 0000000..302910b
--- /dev/null
@@ -0,0 +1,3 @@
+#!/bin/sh
+
+echo -e "Preinstallation actions..."
diff --git a/debian/prerm b/debian/prerm
new file mode 100755 (executable)
index 0000000..6279e7f
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+echo -e "Preremoving actions..."
+
+#su $USER -c 'rm -rf /usr/share/WhiteStork'
+
+if [ "$1" != "upgrade" ]
+then
+       echo -e -n "Removing gconf configuration..\n"
+       su $USER -c 'gconftool-2 --recursive-unset /apps/maemo/WhiteStork/Dictionaries'
+       su $USER -c 'gconftool-2 --recursive-unset /apps/maemo/WhiteStork/Engines'
+fi
+
+# End automatically added section
diff --git a/debian/rules b/debian/rules
new file mode 100755 (executable)
index 0000000..62d9a05
--- /dev/null
@@ -0,0 +1,98 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# GNU copyright 1997 to 1999 by Joey Hess.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+       CFLAGS += -O0
+else
+       CFLAGS += -O2
+endif
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+       INSTALL_PROGRAM += -s
+endif
+
+configure: configure-stamp
+configure-stamp:
+       dh_testdir
+       # Add here commands to configure the package.
+
+       touch configure-stamp
+
+
+build: build-stamp
+
+build-stamp: configure-stamp 
+       dh_testdir
+
+       # Add here commands to compile the package.
+       $(MAKE)
+       #/usr/bin/docbook-to-man debian/whitestork.sgml > whitestork.1
+
+       touch build-stamp
+
+clean:
+       dh_testdir
+       dh_testroot
+       rm -f build-stamp configure-stamp
+
+       # Add here commands to clean up after the build process.
+       -$(MAKE) clean
+
+       dh_clean 
+
+install: build
+       dh_testdir
+       dh_testroot
+       dh_clean -k 
+       dh_installdirs
+
+       # Add here commands to install the package into debian/whitestork.
+       $(MAKE) install DESTDIR=$(CURDIR)/debian/whitestork
+
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+       dh_testdir
+       dh_testroot
+       dh_installchangelogs 
+       dh_installdocs
+#      dh_installexamples
+#      dh_install
+#      dh_installmenu
+#      dh_installdebconf       
+#      dh_installlogrotate
+#      dh_installemacsen
+#      dh_installpam
+#      dh_installmime
+#      dh_installinit
+#      dh_installcron
+#      dh_installinfo
+#      dh_installman
+#      dh_link
+       dh_strip
+       dh_compress
+       dh_fixperms
+#      dh_perl
+#      dh_python
+#      dh_makeshlibs
+       dh_installdeb
+       dh_shlibdeps
+       dh_gencontrol
+       dh_md5sums
+       dh_builddeb
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure
diff --git a/debian/whitestork.substvars b/debian/whitestork.substvars
new file mode 100644 (file)
index 0000000..57dc5b9
--- /dev/null
@@ -0,0 +1 @@
+shlibs:Depends=gtkhtml0, hildon-fm1 (>= 0.29-1), hildon-libs0 (>= 0.12.22-1), libart-2.0-2 (>= 2.3.16), libatk1.0-0 (>= 1.9.0), libbz2-1.0, libc6 (>= 2.3.5-1), libdb1, libdbus-1-2 (>= 0.61), libdbus-glib-1-2 (>= 0.61), libexpat1 (>= 1.95.8), libgconf2-6 (>= 2.6.4.14), libglib2.0-0 (>= 2.8.6-1osso1), libgtk2.0-0 (>= 2:2.6.10-1.osso8), libosso-gnomevfs2-0, libosso1 (>= 1.14-1), libpango1.0-0 (>= 1.8.1), zlib1g (>= 1:1.2.1)