fixed packaging with GXS

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@6464 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2013-06-25 22:02:38 +00:00
parent 8d7bbb25f8
commit 1ebde8788f
13 changed files with 219 additions and 1 deletions

View file

@ -0,0 +1,6 @@
retroshare for Debian
---------------------
<possible notes regarding this package - if none, delete this file>
-- Cyril Soler <csoler@sourceforge.net> Sat, 06 Feb 2010 07:15:46 +0100

View file

@ -0,0 +1 @@
7

View file

@ -0,0 +1,52 @@
Source: retroshare
Section: devel
Priority: standard
Maintainer: Cyril Soler <csoler@users.sourceforge.net>
Build-Depends: debhelper (>= 7), tcl8.5, libsqlite3-dev, libglib2.0-dev, libupnp-dev, qt4-dev-tools, libqt4-dev, libssl-dev, libxss-dev, libgnome-keyring-dev, libbz2-dev, libqt4-opengl-dev, libqtmultimediakit1, qtmobility-dev, libspeex-dev, libspeexdsp-dev, libxslt1-dev, libprotobuf-dev, protobuf-compiler, cmake, libcurl4-openssl-dev
Standards-Version: 3.9.1
Homepage: http://retroshare.sourceforge.net
Package: retroshare-voip-plugin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, retroshare, libspeex1, libspeexdsp1, libqtmultimediakit1
Description: RetroShare VOIP plugin
This package provides a plugin for RetroShare, a secured Friend-to-Friend communication
plateform. The plugin adds voice-over-IP functionality to the private chat window. Both
friends chatting together need the plugin installed to be able to talk together.
Package: retroshare-linkscloud-plugin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, retroshare
Description: RetroShare LinksCloud plugin
This package provides a plugin for RetroShare, a secured Friend-to-Friend communication
plateform. The plugin adds a pool of html links that friends can share, and includes a
voting system to promote links.
Package: retroshare-feedreader-plugin
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, retroshare
Description: RetroShare LinksCloud plugin
This package provides a plugin for RetroShare, a secured Friend-to-Friend communication
plateform. The plugin adds a RSS feed reader tab to retroshare.
Package: retroshare-nogui
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, gnome-keyring
Conflicts: retroshare
Description: Secure communication with friends
This is the command-line client for RetroShare network. This client
can be contacted and talked-to using SSL. Clients exist for portable
devices running e.g. Android.
Package: retroshare
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}, gnome-keyring
Conflicts: retroshare-nogui
Description: Secure communication with friends
RetroShare is a Open Source cross-platform, private and secure decentralised
commmunication platform. It lets you to securely chat and share files with your
friends and family, using a web-of-trust to authenticate peers and OpenSSL to
encrypt all communication. RetroShare provides filesharing, chat, messages,
forums and channels.

View file

@ -0,0 +1,44 @@
This package was debianized by:
Cyril Soler <csoler@sourceforge.net> <csoler@sourceforge.net> on Sat, 06 Feb 2010 07:15:46 +0100
It was downloaded from:
<url://example.com>
Upstream Author(s):
<put author's name and email here>
<likewise for another author>
Copyright:
<Copyright (C) YYYY Firstname Lastname>
<likewise for another author>
License:
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This package is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
On Debian systems, the complete text of the GNU General
Public License version 3 can be found in `/usr/share/common-licenses/GPL-3'.
The Debian packaging is:
Copyright (C) 2010 Cyril Soler <csoler@sourceforge.net> <csoler@sourceforge.net>
and is licensed under the GPL version 3, see above.
# Please also look if there are files or directories which have a
# different copyright/license attached and list them here.

View file

@ -0,0 +1,8 @@
usr/bin
usr/sbin
usr/share/pixmaps
usr/share/applications/
usr/share/RetroShare/
usr/share/icons/hicolor/24x24/apps/
usr/share/icons/hicolor/48x48/apps/
usr/share/icons/hicolor/64x64/apps/

View file

View file

@ -0,0 +1,2 @@
usr/lib/retroshare/extensions/libFeedReader.so

View file

@ -0,0 +1,2 @@
usr/lib/retroshare/extensions/libLinksCloud.so

View file

@ -0,0 +1,6 @@
usr/bin
usr/bin/RetroShare-nogui
usr/share
usr/share/RetroShare
usr/share/RetroShare/bdboot.txt

View file

@ -0,0 +1,2 @@
usr/lib/retroshare/extensions/libVOIP.so

View file

@ -0,0 +1,10 @@
usr/share/applications/retroshare.desktop
usr/share/pixmaps/retroshare.xpm
usr/share/RetroShare/bdboot.txt
usr/share/icons/hicolor/48x48/apps/retroshare.png
usr/share/icons/hicolor/24x24/apps/retroshare.png
usr/share/icons/hicolor/64x64/apps/retroshare.png
usr/bin
usr/bin/RetroShare
usr/bin/RetroShare-nogui

View file

@ -0,0 +1,75 @@
#!/usr/bin/make -f
builddir:
mkdir -p builddir
builddir/Makefile: builddir
touch $@
build: build-stamp
build-stamp: builddir/Makefile
dh_testdir
# Add here commands to compile the package.
cd sqlcipher && ./configure --disable-shared --enable-static --enable-tempstore=yes CFLAGS="-DSQLITE_HAS_CODEC" LDFLAGS="-lcrypto" && make
cd libssh-0.5.4 && mkdir build && cd build && cmake -DWITH_STATIC_LIB=ON .. && make
mkdir lib
cp -r libssh-0.5.4 lib
cp -r sqlcipher lib
#cd src/rsctrl/src && make
cd src && qmake-qt4 CONFIG="release gxs" RetroShare.pro && make
touch $@
clean:
dh_testdir
dh_testroot
rm -f build-stamp
# Add here commands to clean up after the build process.
rm -rf builddir
dh_clean
install: build
dh_testdir
dh_testroot
dh_clean -k
dh_installdirs
install -D -m 644 src/data/retroshare.desktop $(CURDIR)/debian/retroshare/usr/share/applications/retroshare.desktop
install -D -m 644 src/data/24x24/retroshare.png $(CURDIR)/debian/retroshare/usr/share/icons/hicolor/24x24/apps/retroshare.png
install -D -m 644 src/data/48x48/retroshare.png $(CURDIR)/debian/retroshare/usr/share/icons/hicolor/48x48/apps/retroshare.png
install -D -m 644 src/data/64x64/retroshare.png $(CURDIR)/debian/retroshare/usr/share/icons/hicolor/64x64/apps/retroshare.png
install -D -m 644 src/data/retroshare.xpm $(CURDIR)/debian/retroshare/usr/share/pixmaps/retroshare.xpm
install -D -m 644 src/plugins/VOIP/libVOIP.so.1.0.0 $(CURDIR)/debian/retroshare-voip-plugin/usr/lib/retroshare/extensions/libVOIP.so
install -D -m 644 src/plugins/LinksCloud/libLinksCloud.so.1.0.0 $(CURDIR)/debian/retroshare-linkscloud-plugin/usr/lib/retroshare/extensions/libLinksCloud.so
install -D -m 644 src/plugins/FeedReader/libFeedReader.so.1.0.0 $(CURDIR)/debian/retroshare-feedreader-plugin/usr/lib/retroshare/extensions/libFeedReader.so
install -D -m 644 src/libbitdht/src/bitdht/bdboot.txt $(CURDIR)/debian/retroshare-nogui/usr/share/RetroShare/bdboot.txt
install -D -m 644 src/libbitdht/src/bitdht/bdboot.txt $(CURDIR)/debian/retroshare/usr/share/RetroShare/bdboot.txt
install -D -m 755 src/retroshare-nogui/src/retroshare-nogui $(CURDIR)/debian/retroshare-nogui/usr/bin/RetroShare-nogui
install -D -m 755 src/retroshare-nogui/src/retroshare-nogui $(CURDIR)/debian/retroshare/usr/bin/RetroShare-nogui
install -D -m 755 src/retroshare-gui/src/RetroShare $(CURDIR)/debian/retroshare/usr/bin/RetroShare
# Add here commands to install the package into debian/your_appname
# cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/$(APPNAME) install
# 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_installdocs
dh_installexamples
dh_installman
dh_link
dh_strip
dh_compress
dh_fixperms
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

View file

@ -4,6 +4,7 @@
version="0.5.4" version="0.5.4"
svnpath="svn://csoler@svn.code.sf.net/p/retroshare/code/" svnpath="svn://csoler@svn.code.sf.net/p/retroshare/code/"
workdir=retroshare-$version workdir=retroshare-$version
gxs=".gxs" # comment out to compile without gxs
###################################################### ######################################################
echo This script is going to build the debian source package for RetroShare, from the svn. echo This script is going to build the debian source package for RetroShare, from the svn.
@ -38,7 +39,7 @@ echo version is $version
echo Extracting base archive... echo Extracting base archive...
mkdir -p $workdir/src mkdir -p $workdir/src
cp -r debian $workdir/ cp -r debian"$gxs" $workdir/debian
cp -r data $workdir/src/ cp -r data $workdir/src/
echo Checking out latest snapshot in libbitdht... echo Checking out latest snapshot in libbitdht...
@ -55,6 +56,14 @@ cd $workdir
tar zxvf ../libssh-0.5.4.tar.gz tar zxvf ../libssh-0.5.4.tar.gz
cd .. cd ..
if ! test "$gxs" = "" ; then
cd $workdir
git clone https://github.com/sqlcipher/sqlcipher.git
# cat src/retroshare-gui/src/retroshare-gui.pro | sed -e s/-lsqlite3/..\\\/..\\\/..\\\/lib\\\/sqlcipher\\\/.libs\\\/libsqlite3.a/g > /tmp/tutu3278
cp /tmp/tutu3278 src/retroshare-gui/src/retroshare-gui.pro
cd ..
fi
# cleaning up protobof generated files # cleaning up protobof generated files
# \rm -f $workdir/src/rsctrl/src/gencc/*.pb.h # \rm -f $workdir/src/rsctrl/src/gencc/*.pb.h
# \rm -f $workdir/src/rsctrl/src/gencc/*.pb.cpp # \rm -f $workdir/src/rsctrl/src/gencc/*.pb.cpp
@ -86,6 +95,7 @@ mv -f $workdir/debian/control.tmp $workdir/debian/control
cd $workdir cd $workdir
#for i in sid squeeze; do #for i in sid squeeze; do
#for i in sid ; do
#for i in precise; do #for i in precise; do
for i in natty oneiric precise quantal raring; do for i in natty oneiric precise quantal raring; do
echo copying changelog for $i echo copying changelog for $i