Changes for ubuntu proper build

git-svn-id: https://svn.code.sf.net/p/qlscribe/svn/trunk@116 cac9541e-1b8d-4bfa-827e-589bba606050
This commit is contained in:
ruglory
2009-03-05 06:06:05 +00:00
parent 991a18aab2
commit 5bc5aa05be
7 changed files with 43 additions and 6 deletions
+1
View File
@@ -22,6 +22,7 @@ PROJECT( qlscribe )
CMAKE_MINIMUM_REQUIRED(VERSION 2.6.0)
SET( FINAL_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX} CACHE PATH "Final install path")
SET( CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake )
SET( QLSCRIBE_DBUS_SERVICE org.lightscribe )
+2 -2
View File
@@ -1,5 +1,5 @@
qlscribe (0.7-0ubuntu1) unstable; urgency=low
qlscribe (0.8-0ubuntu1) unstable; urgency=low
* Release 0.8 imported
* Initial release
-- Vyacheslav Kononenko <vyacheslav@kononenko.net> Sun, 15 Feb 2009 21:49:41 -0500
+14
View File
@@ -0,0 +1,14 @@
#!/bin/sh
set -e
if [ "$1" = "configure" ] ; then
cp -f /usr/share/qlscribe/lightscribe.conf /etc/dbus-1/system.d/
cp -f /usr/share/qlscribe/org.lightscribe.Manager.service /usr/share/dbus-1/system-services/
/etc/init.d/dbus reload
fi
#DEBHELPER#
exit 0
+21
View File
@@ -0,0 +1,21 @@
#!/bin/sh
set -e
if [ "$1" = "remove" -o "$1" = "upgrade" ] ; then
PID=`pidof lscribed`
if [ "X$PID" != "X" ] ; then
kill $PID
fi
fi
if [ "$1" = "remove" ] ; then
rm -f /etc/dbus-1/system.d/lightscribe.conf
rm -f /usr/share/dbus-1/system-services/org.lightscribe.Manager.service
/etc/init.d/dbus reload
fi
#DEBHELPER#
exit 0
+3 -2
View File
@@ -14,7 +14,8 @@ configure-stamp:
dh_testdir
# Add here commands to configure the package.
mkdir -p build
cd build; cmake .. -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/qlscribe/usr
cd build; cmake .. -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/qlscribe/usr \
-DFINAL_INSTALL_PREFIX=/usr
touch configure-stamp
@@ -77,7 +78,7 @@ binary-arch: build install
# dh_link
# dh_strip
dh_compress
# dh_fixperms #need suid
dh_fixperms
# dh_perl
# dh_makeshlibs
dh_installdeb
+1 -1
View File
@@ -43,7 +43,7 @@ INCLUDE_DIRECTORIES( ${CMAKE_CURRENT_BINARY_DIR} )
ADD_EXECUTABLE( lscribed ${LSCRIBED_SRCS} )
TARGET_LINK_LIBRARIES( lscribed ${LSCRIBE_LIBRARIES} ${DBUS_LIBRARIES} )
TARGET_LINK_LIBRARIES( lscribed ${LSCRIBE_LIBRARIES} ${DBUS_LIBRARIES} pthread )
INSTALL( TARGETS lscribed DESTINATION sbin )
INSTALL( FILES ${LSCRIBED_CONF_FILE} ${LSCRIBED_SERVICE_FILE} DESTINATION share/qlscribe )
+1 -1
View File
@@ -1,4 +1,4 @@
[D-BUS Service]
Name=@QLSCRIBE_DBUS_MANAGER_SERVICE@
Exec=@CMAKE_INSTALL_PREFIX@/sbin/lscribed
Exec=@FINAL_INSTALL_PREFIX@/sbin/lscribed
User=root