mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-25 14:36:01 +03:00
Automatic building of Ubuntu/Debian packages
This commit is contained in:
parent
8c411b32f7
commit
d2e159c385
40 changed files with 950 additions and 28 deletions
57
.travis.yml
57
.travis.yml
|
@ -1,37 +1,38 @@
|
||||||
|
os: linux
|
||||||
|
dist: trusty
|
||||||
sudo: required
|
sudo: required
|
||||||
|
language: generic
|
||||||
language: cpp
|
|
||||||
|
|
||||||
services:
|
services:
|
||||||
- docker
|
- docker
|
||||||
|
|
||||||
branches:
|
env:
|
||||||
only:
|
matrix:
|
||||||
- coverity_scan
|
- BUILD_TYPE=debian
|
||||||
|
|
||||||
before_install:
|
before_install:
|
||||||
- sudo sh -c "echo 'deb http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list"
|
- admin/linux/travis-build.sh before_install
|
||||||
- sudo sh -c "echo 'deb-src http://download.opensuse.org/repositories/isv:/ownCloud:/desktop/Ubuntu_14.04/ /' >> /etc/apt/sources.list.d/owncloud-client.list"
|
|
||||||
- wget http://download.opensuse.org/repositories/isv:ownCloud:desktop/Ubuntu_14.04/Release.key
|
|
||||||
- sudo apt-key add - < Release.key
|
|
||||||
- sudo apt-get update
|
|
||||||
- sudo apt-get -y build-dep owncloud-client
|
|
||||||
- checkout=$(git show-ref --head --hash head)
|
|
||||||
- cd ../
|
|
||||||
- wget https://scan.coverity.com/download/linux-64 --post-data "token=$token&project=owncloud%2Fmirall" -O coverity_tool.tgz
|
|
||||||
- mkdir coverity
|
|
||||||
- tar -xvf coverity_tool.tgz -C coverity --strip-components=1
|
|
||||||
- export PATH=$PATH:$PWD/coverity/bin/
|
|
||||||
- cd $TRAVIS_BUILD_DIR
|
|
||||||
|
|
||||||
install:
|
install:
|
||||||
- cd ../
|
- admin/linux/travis-build.sh install
|
||||||
- mkdir client-build
|
|
||||||
- cd client-build
|
|
||||||
- cmake -DCMAKE_BUILD_TYPE="Debug" $TRAVIS_BUILD_DIR
|
|
||||||
- cov-build --dir cov-int make
|
|
||||||
- tar czvf client.tgz cov-int
|
|
||||||
- curl --form token=$token --form email=lukas@statuscode.ch --form file=@$PWD/client.tgz --form version="$checkout" --form description="$checkout" https://scan.coverity.com/builds?project=owncloud%2Fmirall
|
|
||||||
|
|
||||||
# Hack to stop processing
|
before_script:
|
||||||
script: true
|
- admin/linux/travis-build.sh before_script
|
||||||
|
|
||||||
|
script:
|
||||||
|
- admin/linux/travis-build.sh script
|
||||||
|
|
||||||
|
after_success:
|
||||||
|
- admin/linux/travis-build.sh after_success
|
||||||
|
|
||||||
|
deploy:
|
||||||
|
- provider: script
|
||||||
|
skip_cleanup: true
|
||||||
|
script: admin/linux/travis-build.sh ppa_deploy
|
||||||
|
on:
|
||||||
|
condition: ($BUILD_TYPE = debian)
|
||||||
|
|
||||||
|
branches:
|
||||||
|
except:
|
||||||
|
- # Do not build tags that we create when we upload to GitHub Releases
|
||||||
|
- /^(?i:continuous)$/
|
||||||
|
|
31
admin/linux/debian/README
Normal file
31
admin/linux/debian/README
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
- .pbuilderrc:
|
||||||
|
|
||||||
|
COMPONENTS="main restricted universe multiverse"
|
||||||
|
|
||||||
|
OTHERMIRROR="deb [trusted=yes] file:///${HOME}/pbuilder/deps ./"
|
||||||
|
HOOKDIR="${HOME}/pbuilder/hook.d"
|
||||||
|
BINDMOUNTS="${HOME}/pbuilder/deps"
|
||||||
|
|
||||||
|
EXTRAPACKAGES="apt-utils"
|
||||||
|
|
||||||
|
- pbuilder/hook.d/D70setupdeps: hook to create a Packages file for the
|
||||||
|
packages in pbuilder/deps
|
||||||
|
|
||||||
|
- pbuilder-dist trusty create --override-config --othermirror "deb [trusted=yes] file:///${HOME}/pbuilder/deps ./"
|
||||||
|
|
||||||
|
The OTHERMIRROR setting in .pbuilderrc is overridden by pbuilder-dist!
|
||||||
|
|
||||||
|
- scripts:
|
||||||
|
|
||||||
|
config.sh: basic configuration variables
|
||||||
|
|
||||||
|
create_debdir.sh <tag> <version> <distribution>:
|
||||||
|
create the Debian-conformant source directory and .orig.tar.bz2
|
||||||
|
in the build area
|
||||||
|
build.sh <tag> <version> <distribution> <debuild options...>:
|
||||||
|
call create_debdir.sh and then debuild
|
||||||
|
pbuilder.sh <distribution>:
|
||||||
|
build the existing source package with pbuilder-dist.
|
||||||
|
pbuild.sh <distribution>:
|
||||||
|
build the source packages with build.sh and then call
|
||||||
|
pbuilder.sh
|
23
admin/linux/debian/debian.artful/changelog
Normal file
23
admin/linux/debian/debian.artful/changelog
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
nextcloud-client (2.3.3-1.0~artful1) artful; urgency=medium
|
||||||
|
|
||||||
|
* Debian build support for the forked client.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Mon, 6 Nov 2017 20:20:04 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.1-1.0~artful1) artful; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 23 Mar 2017 19:07:36 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.0-1.0~artful1) artful; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 21 Mar 2017 19:34:13 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.4~artful1) artful; urgency=medium
|
||||||
|
|
||||||
|
* The locale-specific icon names are correct too
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 7 Feb 2017 19:55:40 +0100
|
|
@ -0,0 +1,4 @@
|
||||||
|
usr/lib/*/libnextclouddolphinpluginhelper.so
|
||||||
|
usr/lib/*/qt5/plugins/kf5/overlayicon/nextclouddolphinoverlayplugin.so
|
||||||
|
usr/lib/*/qt5/plugins/nextclouddolphinactionplugin.so
|
||||||
|
usr/share/kservices5/nextclouddolphinactionplugin.desktop
|
48
admin/linux/debian/debian.stable/changelog
Normal file
48
admin/linux/debian/debian.stable/changelog
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
nextcloud-client (2.3.3-1.0~stable1) stable; urgency=medium
|
||||||
|
|
||||||
|
* Debian build support for the forked client.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Mon, 6 Nov 2017 20:20:04 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.1-1.0) stable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 23 Mar 2017 19:07:36 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.0-1.0) stable; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 21 Mar 2017 19:34:13 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.4) stable; urgency=medium
|
||||||
|
|
||||||
|
* The locale-specific icon names are correct too
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 7 Feb 2017 19:55:40 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.3) stable; urgency=medium
|
||||||
|
|
||||||
|
* Caja syncstate plugin is built.
|
||||||
|
* The syncstate plugin has application-specific name
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Fri, 27 Jan 2017 19:34:18 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.2) stable; urgency=medium
|
||||||
|
|
||||||
|
* Fixed appname in the Nemo syncstate extension.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 19 Jan 2017 16:46:50 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.1) stable; urgency=medium
|
||||||
|
|
||||||
|
* Added Nautilus and Nemo syncstate extensions.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 17 Jan 2017 19:55:32 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.0) stable; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Wed, 14 Dec 2016 20:07:46 +0100
|
80
admin/linux/debian/debian.stable/control
Normal file
80
admin/linux/debian/debian.stable/control
Normal file
|
@ -0,0 +1,80 @@
|
||||||
|
Source: nextcloud-client
|
||||||
|
Section: contrib/devel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: István Váradi <ivaradi@varadiistvan.hu>
|
||||||
|
Build-Depends: cmake,
|
||||||
|
debhelper,
|
||||||
|
cdbs,
|
||||||
|
dh-python,
|
||||||
|
extra-cmake-modules (>= 5.16),
|
||||||
|
kdelibs5-dev,
|
||||||
|
kio-dev,
|
||||||
|
libcmocka-dev,
|
||||||
|
libhttp-dav-perl,
|
||||||
|
libinotify-dev [kfreebsd-any],
|
||||||
|
libqt5webkit5-dev,
|
||||||
|
libsqlite3-dev,
|
||||||
|
libssl-dev (>> 1.0.0),
|
||||||
|
zlib1g-dev,
|
||||||
|
optipng,
|
||||||
|
pkg-kde-tools,
|
||||||
|
python-sphinx | python3-sphinx,
|
||||||
|
python3-all,
|
||||||
|
qt5keychain-dev,
|
||||||
|
qtdeclarative5-dev,
|
||||||
|
qttools5-dev,
|
||||||
|
qttools5-dev-tools,
|
||||||
|
xvfb
|
||||||
|
Standards-Version: 3.9.8
|
||||||
|
Homepage: https://github.com/nextcloud/client_theming
|
||||||
|
#Vcs-Git: git://anonscm.debian.org/collab-maint/nextcloud-client.git
|
||||||
|
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/nextcloud-client.git
|
||||||
|
|
||||||
|
Package: nextcloud-client
|
||||||
|
Architecture: any
|
||||||
|
Depends: libnextcloudsync0 (=${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, nextcloud-client-l10n
|
||||||
|
Description: Nextcloud desktop sync client
|
||||||
|
Use the desktop client to keep your files synchronized
|
||||||
|
between your Nextcloud server and your desktop. Select
|
||||||
|
one or more directories on your local machine and always
|
||||||
|
have access to your latest files wherever you are.
|
||||||
|
|
||||||
|
Package: libnextcloudsync0
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: Nextcloud sync library
|
||||||
|
Used by the Nextcloud desktop client as the synchronization engine.
|
||||||
|
|
||||||
|
Package: libnextcloudsync-dev
|
||||||
|
Architecture: any
|
||||||
|
Section: contrib/libdevel
|
||||||
|
Depends: libnextcloudsync0 (=${binary:Version}), ${misc:Depends}
|
||||||
|
Description: Nextcloud sync library development files
|
||||||
|
The headers and development library for the Nextcloud sync library.
|
||||||
|
|
||||||
|
Package: nextcloud-client-l10n
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}
|
||||||
|
Description: Nextcloud client internatialization files
|
||||||
|
The translation files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-nautilus
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-nautilus, nautilus, ${misc:Depends}
|
||||||
|
Description: Nautilus plugin for Nextcloud
|
||||||
|
This package contains a Nautilus plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-nemo
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-nemo, nemo, ${misc:Depends}
|
||||||
|
Description: Nemo plugin for Nextcloud
|
||||||
|
This package contains a Nemo plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-caja
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-caja, caja, ${misc:Depends}
|
||||||
|
Description: Caja plugin for Nextcloud
|
||||||
|
This package contains a Caja plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
48
admin/linux/debian/debian.yakkety/changelog
Normal file
48
admin/linux/debian/debian.yakkety/changelog
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
nextcloud-client (2.3.3-1.0~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* Debian build support for the forked client.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Mon, 6 Nov 2017 20:20:04 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.1-1.0~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 23 Mar 2017 19:07:36 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.0-1.0~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 21 Mar 2017 19:34:13 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.4~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* The locale-specific icon names are correct too
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 7 Feb 2017 19:55:40 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.3~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* Caja syncstate plugin is built.
|
||||||
|
* The syncstate plugin has application-specific name
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Fri, 27 Jan 2017 19:34:18 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.2~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* Fixed appname in the Nemo syncstate extension.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 19 Jan 2017 16:46:50 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.1~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* Added Nautilus and Nemo syncstate extensions.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 17 Jan 2017 19:55:32 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.0~yakkety1) yakkety; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Wed, 14 Dec 2016 20:07:46 +0100
|
|
@ -0,0 +1,4 @@
|
||||||
|
usr/lib/*/libnextclouddolphinpluginhelper.so
|
||||||
|
usr/lib/*/qt5/plugins/kf5/overlayicon/nextclouddolphinoverlayplugin.so
|
||||||
|
usr/lib/*/qt5/plugins/nextclouddolphinactionplugin.so
|
||||||
|
usr/share/kservices5/nextclouddolphinactionplugin.desktop
|
23
admin/linux/debian/debian.zesty/changelog
Normal file
23
admin/linux/debian/debian.zesty/changelog
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
nextcloud-client (2.3.3-1.0~zesty1) zesty; urgency=medium
|
||||||
|
|
||||||
|
* Debian build support for the forked client.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Mon, 6 Nov 2017 20:20:04 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.1-1.0~zesty1) zesty; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 23 Mar 2017 19:07:36 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.0-1.0~zesty1) zesty; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 21 Mar 2017 19:34:13 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.4~zesty1) zesty; urgency=medium
|
||||||
|
|
||||||
|
* The locale-specific icon names are correct too
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 7 Feb 2017 19:55:40 +0100
|
|
@ -0,0 +1,4 @@
|
||||||
|
usr/lib/*/libnextclouddolphinpluginhelper.so
|
||||||
|
usr/lib/*/qt5/plugins/kf5/overlayicon/nextclouddolphinoverlayplugin.so
|
||||||
|
usr/lib/*/qt5/plugins/nextclouddolphinactionplugin.so
|
||||||
|
usr/share/kservices5/nextclouddolphinactionplugin.desktop
|
1
admin/linux/debian/debian/101-sync-inotify.conf
Normal file
1
admin/linux/debian/debian/101-sync-inotify.conf
Normal file
|
@ -0,0 +1 @@
|
||||||
|
fs.inotify.max_user_watches = 524288
|
48
admin/linux/debian/debian/changelog
Normal file
48
admin/linux/debian/debian/changelog
Normal file
|
@ -0,0 +1,48 @@
|
||||||
|
nextcloud-client (2.3.3-1.0~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Debian build support for the forked client.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Mon, 6 Nov 2017 20:20:04 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.1-1.0~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 23 Mar 2017 19:07:36 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.3.0-1.0~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* New upstream version
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 21 Mar 2017 19:34:13 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.4~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* The locale-specific icon names are correct too
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 7 Feb 2017 19:55:40 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.3~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Caja syncstate plugin is built.
|
||||||
|
* The syncstate plugin has application-specific name
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Fri, 27 Jan 2017 19:34:18 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.2~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Fixed appname in the Nemo syncstate extension.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Thu, 19 Jan 2017 16:46:50 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.1~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Added Nautilus and Nemo syncstate extensions.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Tue, 17 Jan 2017 19:55:32 +0100
|
||||||
|
|
||||||
|
nextcloud-client (2.2.4-1.0~xenial1) xenial; urgency=medium
|
||||||
|
|
||||||
|
* Initial release.
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> Wed, 14 Dec 2016 20:07:46 +0100
|
1
admin/linux/debian/debian/compat
Normal file
1
admin/linux/debian/debian/compat
Normal file
|
@ -0,0 +1 @@
|
||||||
|
9
|
87
admin/linux/debian/debian/control
Normal file
87
admin/linux/debian/debian/control
Normal file
|
@ -0,0 +1,87 @@
|
||||||
|
Source: nextcloud-client
|
||||||
|
Section: contrib/devel
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: István Váradi <ivaradi@varadiistvan.hu>
|
||||||
|
Build-Depends: cmake,
|
||||||
|
debhelper,
|
||||||
|
cdbs,
|
||||||
|
dh-python,
|
||||||
|
extra-cmake-modules (>= 5.16),
|
||||||
|
kdelibs5-dev,
|
||||||
|
kio-dev,
|
||||||
|
libcmocka-dev,
|
||||||
|
libhttp-dav-perl,
|
||||||
|
libinotify-dev [kfreebsd-any],
|
||||||
|
libqt5webkit5-dev,
|
||||||
|
libsqlite3-dev,
|
||||||
|
libssl-dev (>> 1.0.0),
|
||||||
|
zlib1g-dev,
|
||||||
|
optipng,
|
||||||
|
pkg-kde-tools,
|
||||||
|
python-sphinx | python3-sphinx,
|
||||||
|
python3-all,
|
||||||
|
qt5keychain-dev,
|
||||||
|
qtdeclarative5-dev,
|
||||||
|
qttools5-dev,
|
||||||
|
qttools5-dev-tools,
|
||||||
|
xvfb
|
||||||
|
Standards-Version: 3.9.8
|
||||||
|
Homepage: https://github.com/nextcloud/client_theming
|
||||||
|
#Vcs-Git: git://anonscm.debian.org/collab-maint/nextcloud-client.git
|
||||||
|
#Vcs-Browser: https://anonscm.debian.org/cgit/collab-maint/nextcloud-client.git
|
||||||
|
|
||||||
|
Package: nextcloud-client
|
||||||
|
Architecture: any
|
||||||
|
Depends: libnextcloudsync0 (=${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, nextcloud-client-l10n
|
||||||
|
Description: Nextcloud desktop sync client
|
||||||
|
Use the desktop client to keep your files synchronized
|
||||||
|
between your Nextcloud server and your desktop. Select
|
||||||
|
one or more directories on your local machine and always
|
||||||
|
have access to your latest files wherever you are.
|
||||||
|
|
||||||
|
Package: libnextcloudsync0
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||||
|
Description: Nextcloud sync library
|
||||||
|
Used by the Nextcloud desktop client as the synchronization engine.
|
||||||
|
|
||||||
|
Package: libnextcloudsync-dev
|
||||||
|
Architecture: any
|
||||||
|
Section: contrib/libdevel
|
||||||
|
Depends: libnextcloudsync0 (=${binary:Version}), ${misc:Depends}
|
||||||
|
Description: Nextcloud sync library development files
|
||||||
|
The headers and development library for the Nextcloud sync library.
|
||||||
|
|
||||||
|
Package: nextcloud-client-l10n
|
||||||
|
Architecture: all
|
||||||
|
Depends: ${misc:Depends}
|
||||||
|
Description: Nextcloud client internatialization files
|
||||||
|
The translation files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-nautilus
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-nautilus, nautilus, ${misc:Depends}
|
||||||
|
Description: Nautilus plugin for Nextcloud
|
||||||
|
This package contains a Nautilus plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-nemo
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-nemo | nemo-python, nemo, ${misc:Depends}
|
||||||
|
Description: Nemo plugin for Nextcloud
|
||||||
|
This package contains a Nemo plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-caja
|
||||||
|
Architecture: all
|
||||||
|
Depends: nextcloud-client (>=${binary:Version}), libnextcloudsync0, python-caja, caja, ${misc:Depends}
|
||||||
|
Description: Caja plugin for Nextcloud
|
||||||
|
This package contains a Caja plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
||||||
|
|
||||||
|
Package: nextcloud-client-dolphin
|
||||||
|
Architecture: any
|
||||||
|
Depends: dolphin (>= 4:15.12.1), libnextcloudsync0 (= ${binary:Version}), nextcloud-client, ${misc:Depends}, ${shlibs:Depends}
|
||||||
|
Description: Dolphin plugin for Nextcloud
|
||||||
|
This package contains a Dolphin plugin to display
|
||||||
|
synchronization status icons for Nextcloud files.
|
3
admin/linux/debian/debian/copyright
Normal file
3
admin/linux/debian/debian/copyright
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
Files: *
|
||||||
|
Copyright: 2012-2015 ownCloud, inc.; Nuernberg, Germany., 2016 Nextcloud GmbH
|
||||||
|
License: GPL-2+
|
3
admin/linux/debian/debian/libnextcloudsync-dev.install
Normal file
3
admin/linux/debian/debian/libnextcloudsync-dev.install
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
usr/include
|
||||||
|
usr/lib/*/libnextcloudsync.so
|
||||||
|
usr/lib/*/nextcloud/libocsync.so
|
3
admin/linux/debian/debian/libnextcloudsync0.install
Normal file
3
admin/linux/debian/debian/libnextcloudsync0.install
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
etc
|
||||||
|
usr/lib/*/libnextcloudsync.so.?*
|
||||||
|
usr/lib/*/nextcloud/libocsync.so.?*
|
1
admin/linux/debian/debian/nextcloud-client-caja.install
Normal file
1
admin/linux/debian/debian/nextcloud-client-caja.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
usr/share/caja-python
|
|
@ -0,0 +1,4 @@
|
||||||
|
usr/lib/*/libnextclouddolphinpluginhelper.so
|
||||||
|
usr/lib/*/plugins/kf5/overlayicon/nextclouddolphinoverlayplugin.so
|
||||||
|
usr/lib/*/plugins/nextclouddolphinactionplugin.so
|
||||||
|
usr/share/kservices5/nextclouddolphinactionplugin.desktop
|
|
@ -0,0 +1,2 @@
|
||||||
|
nextcloud-client-dolphin: package-name-doesnt-match-sonames
|
||||||
|
nextcloud-client-dolphin: shlib-without-versioned-soname
|
|
@ -0,0 +1 @@
|
||||||
|
activate-noawait ldconfig
|
1
admin/linux/debian/debian/nextcloud-client-l10n.install
Normal file
1
admin/linux/debian/debian/nextcloud-client-l10n.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
usr/share/nextcloud/i18n
|
|
@ -0,0 +1 @@
|
||||||
|
usr/share/nautilus-python
|
1
admin/linux/debian/debian/nextcloud-client-nemo.install
Normal file
1
admin/linux/debian/debian/nextcloud-client-nemo.install
Normal file
|
@ -0,0 +1 @@
|
||||||
|
usr/share/nemo-python
|
4
admin/linux/debian/debian/nextcloud-client.install
Normal file
4
admin/linux/debian/debian/nextcloud-client.install
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
usr/bin
|
||||||
|
usr/share/applications
|
||||||
|
usr/share/icons
|
||||||
|
debian/101-sync-inotify.conf etc/sysctl.d
|
|
@ -0,0 +1,3 @@
|
||||||
|
nextcloud-client: binary-or-shlib-defines-rpath
|
||||||
|
nextcloud-client: binary-without-manpage
|
||||||
|
nextcloud-client: license-problem-convert-utf-code
|
12
admin/linux/debian/debian/rules
Executable file
12
admin/linux/debian/debian/rules
Executable file
|
@ -0,0 +1,12 @@
|
||||||
|
#!/usr/bin/make -f
|
||||||
|
# See debhelper(7) (uncomment to enable)
|
||||||
|
# output every command that modifies files on the build system.
|
||||||
|
#export DH_VERBOSE = 1
|
||||||
|
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
include /usr/share/cdbs/1/class/cmake.mk
|
||||||
|
|
||||||
|
DEB_SHLIBDEPS_INCLUDE=$(CURDIR)/$(DEB_BUILDDIR)/csync/src
|
||||||
|
|
||||||
|
DEB_SRCDIR=.
|
||||||
|
DEB_CMAKE_EXTRA_FLAGS = -DCMAKE_SKIP_RPATH=OFF -DCMAKE_SKIP_BUILD_RPATH=ON -DCMAKE_BUILD_WITH_INSTALL_RPATH=ON
|
1
admin/linux/debian/debian/source/format
Normal file
1
admin/linux/debian/debian/source/format
Normal file
|
@ -0,0 +1 @@
|
||||||
|
3.0 (quilt)
|
9
admin/linux/debian/debian/source/lintian-overrides
Normal file
9
admin/linux/debian/debian/source/lintian-overrides
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/bootstrap/static/bootstrap.js line length is 22206 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/bootstrap/static/jquery.js
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/bootstrap/static/jquery.js line length is 32412 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/owncloud_com/static/bootstrap.js line length is 22206 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/owncloud_com/static/jquery.js line length is 32412 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/owncloud_release/static/bootstrap.js line length is 22206 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/owncloud_release/static/jquery.js line length is 32412 characters (>512)
|
||||||
|
nextcloud-client source: source-is-missing client/doc/ocdoc/_shared_assets/themes/owncloud_org/static/js/jquery-1.11.0.min.js
|
||||||
|
nextcloud-client source: license-problem-convert-utf-code
|
BIN
admin/linux/debian/oscrc.enc
Normal file
BIN
admin/linux/debian/oscrc.enc
Normal file
Binary file not shown.
50
admin/linux/debian/scripts/addchange.sh
Executable file
50
admin/linux/debian/scripts/addchange.sh
Executable file
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
scriptdir=`dirname $0`
|
||||||
|
|
||||||
|
DEFAULT_DIST=yakkety
|
||||||
|
|
||||||
|
package="nextcloud-client"
|
||||||
|
version="$1"
|
||||||
|
comment="$2"
|
||||||
|
distver="${3:-}"
|
||||||
|
|
||||||
|
if test -z "${distver}"; then
|
||||||
|
distver="1"
|
||||||
|
fi
|
||||||
|
|
||||||
|
packagedir="${scriptdir}/../${package}"
|
||||||
|
|
||||||
|
now=`date -R`
|
||||||
|
|
||||||
|
tmpfile="/tmp/addchange.$$"
|
||||||
|
|
||||||
|
for subdir in "${packagedir}/debian"*; do
|
||||||
|
if test -f "${subdir}/changelog"; then
|
||||||
|
echo "${subdir}"
|
||||||
|
bname=`basename "${subdir}"`
|
||||||
|
dist=`echo "${bname}" | sed 's:debian\.\?::'`
|
||||||
|
if test -z "${dist}"; then
|
||||||
|
dist="${DEFAULT_DIST}"
|
||||||
|
fi
|
||||||
|
if test "${dist}" = "stable"; then
|
||||||
|
versuffix=""
|
||||||
|
else
|
||||||
|
versuffix="~${dist}${distver}"
|
||||||
|
fi
|
||||||
|
cat > "${tmpfile}" <<EOF
|
||||||
|
${package} (${version}${versuffix}) ${dist}; urgency=medium
|
||||||
|
|
||||||
|
* ${comment}
|
||||||
|
|
||||||
|
-- István Váradi <ivaradi@varadiistvan.hu> ${now}
|
||||||
|
|
||||||
|
EOF
|
||||||
|
cat "${subdir}/changelog" >> "${tmpfile}"
|
||||||
|
mv "${tmpfile}" "${subdir}/changelog"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
|
||||||
|
rm -f "${tmpfile}"
|
26
admin/linux/debian/scripts/config.sh
Normal file
26
admin/linux/debian/scripts/config.sh
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# The directory where the sources are found
|
||||||
|
SOURCES="${HOME}/sources/nextcloud/client"
|
||||||
|
|
||||||
|
# The directory into which the packages should be genereated
|
||||||
|
BUILDAREA="${SOURCES}/build-area"
|
||||||
|
|
||||||
|
# The directory containing the Git repositories
|
||||||
|
GITROOTS="${SOURCES}/git"
|
||||||
|
|
||||||
|
# The pbuilder root directory
|
||||||
|
PBUILDER_ROOT="${HOME}/pbuilder"
|
||||||
|
|
||||||
|
# The dependencies directory for pbuilder
|
||||||
|
PBUILDER_DEPS="${PBUILDER_ROOT}/deps"
|
||||||
|
|
||||||
|
# The version of the nextcloud-client package
|
||||||
|
NEXTCLOUD_CLIENT_VERSION=2.4.0
|
||||||
|
|
||||||
|
# The FULL version of the nextcloud-client package
|
||||||
|
NEXTCLOUD_CLIENT_FULL_VERSION="${NEXTCLOUD_CLIENT_VERSION}-1.0~@DISTRIBUTION@1"
|
||||||
|
|
||||||
|
# The tag of the nextcloud-client package
|
||||||
|
NEXTCLOUD_CLIENT_TAG="v${NEXTCLOUD_CLIENT_VERSION}"
|
||||||
|
|
||||||
|
# The number of CPUs that can be used for paralel builds
|
||||||
|
NUMCPUS=4
|
80
admin/linux/debian/scripts/create_debdir.sh
Executable file
80
admin/linux/debian/scripts/create_debdir.sh
Executable file
|
@ -0,0 +1,80 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
scriptdir=`dirname $0`
|
||||||
|
scriptdir=`cd "${scriptdir}" && pwd`
|
||||||
|
|
||||||
|
. "${scriptdir}/config.sh"
|
||||||
|
|
||||||
|
package="nextcloud-client"
|
||||||
|
tag="${1}"
|
||||||
|
version="${2}"
|
||||||
|
distribution="${3}"
|
||||||
|
|
||||||
|
gitdir="${GITROOTS}/client"
|
||||||
|
packagedir="${BUILDAREA}/${package}_${version}"
|
||||||
|
origtarname="${package}_${version}.orig.tar.bz2"
|
||||||
|
origtar="${BUILDAREA}/${origtarname}"
|
||||||
|
|
||||||
|
archive_submodules()
|
||||||
|
{
|
||||||
|
local subdir="${1}"
|
||||||
|
local treeish="${2}"
|
||||||
|
|
||||||
|
local dir="${gitdir}"
|
||||||
|
local destdir="${packagedir}"
|
||||||
|
if test "${subdir}"; then
|
||||||
|
echo " copying submodule ${subdir}"
|
||||||
|
dir="${dir}/${subdir}"
|
||||||
|
destdir="${destdir}/${subdir}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir -p "${destdir}"
|
||||||
|
|
||||||
|
(cd "${dir}"; git archive "${treeish}" | tar xf - -C "${destdir}")
|
||||||
|
|
||||||
|
(cd "${dir}"; git ls-tree "${treeish}" -r) | while read mode type object file; do
|
||||||
|
if test "${type}" = "commit"; then
|
||||||
|
sdir="${file}"
|
||||||
|
if test "${subdir}"; then
|
||||||
|
sdir="${subdir}/${sdir}"
|
||||||
|
fi
|
||||||
|
archive_submodules "${sdir}" "${object}"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
|
rm -rf "${packagedir}"
|
||||||
|
mkdir -p "${packagedir}"
|
||||||
|
|
||||||
|
echo "Updating submodules"
|
||||||
|
commit=`cd "${gitdir}"; git rev-parse HEAD`
|
||||||
|
(cd "${gitdir}"; git checkout "${tag}"; git submodule update --recursive --init)
|
||||||
|
|
||||||
|
echo "Copying sources"
|
||||||
|
archive_submodules "" "${tag}"
|
||||||
|
|
||||||
|
if test -f "${GITROOTS}/${origtarname}"; then
|
||||||
|
echo "Copying orig archive from ${GITROOTS}"
|
||||||
|
cp -a "${GITROOTS}/${origtarname}" "${BUILDAREA}"
|
||||||
|
else
|
||||||
|
echo "Creating orig archive"
|
||||||
|
tar cjf "${origtar}" -C "${BUILDAREA}" "${package}_${version}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "Restoring Git state"
|
||||||
|
(cd "${gitdir}"; git checkout "${commit}")
|
||||||
|
cd "${scriptdir}"
|
||||||
|
|
||||||
|
echo "Copying Debian files"
|
||||||
|
mkdir -p "${packagedir}/debian"
|
||||||
|
tar cf - -C "${scriptdir}/../debian" . | tar xf - -C "${packagedir}/debian"
|
||||||
|
|
||||||
|
if test -d "${scriptdir}/../debian.${distribution}"; then
|
||||||
|
tar cf - -C "${scriptdir}/../debian.${distribution}" . | tar xf - -C "${packagedir}/debian"
|
||||||
|
fi
|
||||||
|
|
||||||
|
"${scriptdir}/git2changelog.py" /tmp/git2changelog "${distribution}"
|
||||||
|
mv "${packagedir}/debian/changelog" "${packagedir}/debian/changelog.old"
|
||||||
|
cat /tmp/git2changelog "${packagedir}/debian/changelog.old" > "${packagedir}/debian/changelog"
|
8
admin/linux/debian/scripts/git2changelog.cfg
Normal file
8
admin/linux/debian/scripts/git2changelog.cfg
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
# Use the configuration below with appropriate changes,
|
||||||
|
# if you want to support a new client version using
|
||||||
|
# your own fork. In such a case the tags do not come
|
||||||
|
# accross to the main repo for a pull request, so
|
||||||
|
# some hacking is needed
|
||||||
|
[versionhack]
|
||||||
|
#commit = 30986d6
|
||||||
|
#tag = v2.3.3-beta
|
106
admin/linux/debian/scripts/git2changelog.py
Executable file
106
admin/linux/debian/scripts/git2changelog.py
Executable file
|
@ -0,0 +1,106 @@
|
||||||
|
#!//usr/bin/env python2.7
|
||||||
|
|
||||||
|
import subprocess
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import datetime
|
||||||
|
import os
|
||||||
|
import ConfigParser
|
||||||
|
|
||||||
|
distribution="yakkety"
|
||||||
|
|
||||||
|
versionTagRE = re.compile("^v([0-9]+((\.[0-9]+)+))(-(.+))?$")
|
||||||
|
|
||||||
|
def processVersionTag(tag):
|
||||||
|
m = versionTagRE.match(tag)
|
||||||
|
if m:
|
||||||
|
return (m.group(1), "release" if m.group(4) is None else "beta")
|
||||||
|
else:
|
||||||
|
return None
|
||||||
|
|
||||||
|
def collectEntries(baseCommit, baseVersion, kind):
|
||||||
|
scriptdir = os.path.dirname(__file__)
|
||||||
|
configPath = os.path.join(scriptdir, "git2changelog.cfg")
|
||||||
|
|
||||||
|
newVersionCommit = None
|
||||||
|
newVersionTag = None
|
||||||
|
newVersionOrigTag = None
|
||||||
|
|
||||||
|
if os.path.exists(configPath):
|
||||||
|
config = ConfigParser.SafeConfigParser()
|
||||||
|
config.read(configPath)
|
||||||
|
if config.has_section("versionhack"):
|
||||||
|
if config.has_option("versionhack", "commit") and \
|
||||||
|
config.has_option("versionhack", "tag"):
|
||||||
|
newVersionCommit = config.get("versionhack", "commit")
|
||||||
|
newVersionTag = config.get("versionhack", "tag")
|
||||||
|
|
||||||
|
entries = []
|
||||||
|
|
||||||
|
args = ["git", "log",
|
||||||
|
"--format=%h%x09%an%x09%ae%x09%aD%x09%ad%x09%s",
|
||||||
|
"--date=unix", "--author-date-order", "--reverse"]
|
||||||
|
try:
|
||||||
|
output = subprocess.check_output(args + [baseCommit + ".."])
|
||||||
|
except:
|
||||||
|
output = subprocess.check_output(args)
|
||||||
|
|
||||||
|
|
||||||
|
lastVersionTag = None
|
||||||
|
for line in output.splitlines():
|
||||||
|
(commit, name, email, date, revdate, subject) = line.split("\t")
|
||||||
|
revdate = datetime.datetime.utcfromtimestamp(long(revdate)).strftime("%Y%m%d.%H%M%S")
|
||||||
|
|
||||||
|
if commit==newVersionCommit:
|
||||||
|
result = processVersionTag(newVersionTag)
|
||||||
|
if result:
|
||||||
|
newVersionOrigTag = lastVersionTag
|
||||||
|
(baseVersion, kind) = result
|
||||||
|
|
||||||
|
for tag in subprocess.check_output(["git", "tag",
|
||||||
|
"--points-at",
|
||||||
|
commit]).splitlines():
|
||||||
|
if tag!=newVersionOrigTag:
|
||||||
|
result = processVersionTag(tag)
|
||||||
|
if result:
|
||||||
|
lastVersionTag = tag
|
||||||
|
(baseVersion, kind) = result
|
||||||
|
|
||||||
|
entries.append((commit, name, email, date, revdate, subject,
|
||||||
|
baseVersion, kind))
|
||||||
|
|
||||||
|
entries.reverse()
|
||||||
|
|
||||||
|
return entries
|
||||||
|
|
||||||
|
def genChangeLogEntries(f, entries, distribution):
|
||||||
|
latestBaseVersion = None
|
||||||
|
latestKind = None
|
||||||
|
for (commit, name, email, date, revdate, subject, baseVersion, kind) in entries:
|
||||||
|
if latestBaseVersion is None:
|
||||||
|
latestBaseVersion = baseVersion
|
||||||
|
latestKind = kind
|
||||||
|
upstreamVersion = baseVersion + "-" + revdate
|
||||||
|
if distribution=="stable":
|
||||||
|
version = upstreamVersion
|
||||||
|
else:
|
||||||
|
version = upstreamVersion + "~" + distribution + "1"
|
||||||
|
print >> f, "nextcloud-client (%s) %s; urgency=medium" % (version, distribution)
|
||||||
|
print >> f
|
||||||
|
print >> f, " * " + subject
|
||||||
|
print >> f
|
||||||
|
print >> f, " -- %s <%s> %s" % (name, email, date)
|
||||||
|
print >> f
|
||||||
|
return (latestBaseVersion, latestKind)
|
||||||
|
|
||||||
|
if __name__ == "__main__":
|
||||||
|
|
||||||
|
distribution = sys.argv[2]
|
||||||
|
|
||||||
|
#entries = collectEntries("8aade24147b5313f8241a8b42331442b7f40eef9", "2.2.4", "release")
|
||||||
|
entries = collectEntries("f9b1c724d6ab5431e0cd56b7cd834f2dd48cebb1", "2.4.0", "release")
|
||||||
|
|
||||||
|
|
||||||
|
with open(sys.argv[1], "wt") as f:
|
||||||
|
(baseVersion, kind) = genChangeLogEntries(f, entries, distribution)
|
||||||
|
print baseVersion, kind
|
17
admin/linux/debian/scripts/pbuild.sh
Executable file
17
admin/linux/debian/scripts/pbuild.sh
Executable file
|
@ -0,0 +1,17 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
scriptdir=`dirname $0`
|
||||||
|
scriptdir=`cd "${scriptdir}" && pwd`
|
||||||
|
|
||||||
|
. "${scriptdir}/config.sh"
|
||||||
|
|
||||||
|
distribution="${1}"
|
||||||
|
shift
|
||||||
|
|
||||||
|
pushd /
|
||||||
|
"${scriptdir}/build.sh" "${distribution}" -S "$@"
|
||||||
|
|
||||||
|
"${scriptdir}/pbuilder.sh" "${distribution}" "$@"
|
||||||
|
popd
|
21
admin/linux/debian/scripts/pbuilder.sh
Executable file
21
admin/linux/debian/scripts/pbuilder.sh
Executable file
|
@ -0,0 +1,21 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e -u
|
||||||
|
|
||||||
|
scriptdir=`dirname $0`
|
||||||
|
|
||||||
|
. "${scriptdir}/config.sh"
|
||||||
|
|
||||||
|
distribution="${1}"
|
||||||
|
shift
|
||||||
|
|
||||||
|
resultdir="${PBUILDER_ROOT}/${distribution}_result"
|
||||||
|
|
||||||
|
rm -f "${PBUILDER_DEPS}/"*.deb
|
||||||
|
echo -n > "${PBUILDER_DEPS}/Packages"
|
||||||
|
rm -f "${resultdir}/"*
|
||||||
|
|
||||||
|
source "${HOME}/.pbuilderrc"
|
||||||
|
|
||||||
|
dscversion=`echo ${NEXTCLOUD_CLIENT_FULL_VERSION} | sed "s:@DISTRIBUTION@:${distribution}:g"`
|
||||||
|
pbuilder-dist "${distribution}" build --othermirror "${OTHERMIRROR}" --debbuildopts "-j${NUMCPUS}" "$@" "${BUILDAREA}/nextcloud-client_${dscversion}.dsc"
|
BIN
admin/linux/debian/signing-key.txt.enc
Normal file
BIN
admin/linux/debian/signing-key.txt.enc
Normal file
Binary file not shown.
143
admin/linux/debian/travis-build.sh
Executable file
143
admin/linux/debian/travis-build.sh
Executable file
|
@ -0,0 +1,143 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
shopt -s extglob
|
||||||
|
|
||||||
|
TRAVIS_BUILD_STEP="$1"
|
||||||
|
|
||||||
|
PPA=ppa:nextcloud-devs/client-alpha
|
||||||
|
PPA_BETA=ppa:nextcloud-devs/client-beta
|
||||||
|
|
||||||
|
OBS_PROJECT=home:ivaradi:alpha
|
||||||
|
OBS_PROJECT_BETA=home:ivaradi:beta
|
||||||
|
OBS_PACKAGE=nextcloud-client
|
||||||
|
|
||||||
|
if [ "$TRAVIS_BUILD_STEP" == "install" ]; then
|
||||||
|
sudo apt-get update -q
|
||||||
|
sudo apt-get install -y devscripts cdbs osc
|
||||||
|
|
||||||
|
if test "$encrypted_585e03da75ed_key" -a "$encrypted_585e03da75ed_iv"; then
|
||||||
|
openssl aes-256-cbc -K $encrypted_585e03da75ed_key -iv $encrypted_585e03da75ed_iv -in tools/linux/debian/signing-key.txt.enc -d | gpg --import
|
||||||
|
echo "DEBUILD_DPKG_BUILDPACKAGE_OPTS='-k7D14AA7B'" >> ~/.devscripts
|
||||||
|
|
||||||
|
openssl aes-256-cbc -K $encrypted_585e03da75ed_key -iv $encrypted_585e03da75ed_iv -in tools/linux/debian/oscrc.enc -out ~/.oscrc -d
|
||||||
|
|
||||||
|
touch ~/.has_ppa_keys
|
||||||
|
elif test "$encrypted_8da7a4416c7a_key" -a "$encrypted_8da7a4416c7a_iv"; then
|
||||||
|
openssl aes-256-cbc -K $encrypted_8da7a4416c7a_key -iv $encrypted_8da7a4416c7a_iv -in tools/linux/debian/oscrc.enc -out ~/.oscrc -d
|
||||||
|
PPA=ppa:ivaradi/nextcloud-client-exp
|
||||||
|
elif test "$encrypted_c5306c5c5331_key" -a "$encrypted_c5306c5c5331_key"; then
|
||||||
|
openssl aes-256-cbc -K $encrypted_c5306c5c5331_key -iv $encrypted_c5306c5c5331_key -in tools/linux/debian/oscrc.enc -out ~/.oscrc -d
|
||||||
|
PPA=ppa:ivaradi/nextcloud-client-exp
|
||||||
|
elif test "$encrypted_5dafbd038603_key" -a "$encrypted_5dafbd038603_iv"; then
|
||||||
|
openssl aes-256-cbc -K $encrypted_5dafbd038603_key -iv $encrypted_5dafbd038603_iv -in tools/linux/debian/signing-key.txt.enc -d | gpg --import
|
||||||
|
echo "DEBUILD_DPKG_BUILDPACKAGE_OPTS='-k7D14AA7B'" >> ~/.devscripts
|
||||||
|
|
||||||
|
|
||||||
|
openssl aes-256-cbc -K $encrypted_5dafbd038603_key -iv $encrypted_5dafbd038603_iv -in tools/linux/debian/oscrc.enc -out ~/.oscrc -d
|
||||||
|
|
||||||
|
touch ~/.has_ppa_keys
|
||||||
|
fi
|
||||||
|
|
||||||
|
elif [ "$TRAVIS_BUILD_STEP" == "script" ]; then
|
||||||
|
read basever kind <<<$(tools/linux/debian/scripts/git2changelog.py /tmp/tmpchangelog stable)
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
echo "$kind" > kind
|
||||||
|
kind="release"
|
||||||
|
|
||||||
|
if test "$encrypted_5dafbd038603_key" -a "$encrypted_5dafbd038603_iv"; then
|
||||||
|
repo=ivaradi/nextcloud-client-exp
|
||||||
|
else
|
||||||
|
if test "$kind" = "beta"; then
|
||||||
|
repo=nextcloud-devs/client-beta
|
||||||
|
else
|
||||||
|
repo=nextcloud-devs/client-alpha
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test -d nextcloud-client; then
|
||||||
|
gitdir="nextcloud-client"
|
||||||
|
else
|
||||||
|
gitdir="client"
|
||||||
|
fi
|
||||||
|
|
||||||
|
origsourceopt=""
|
||||||
|
|
||||||
|
if ! wget http://ppa.launchpad.net/${repo}/ubuntu/pool/main/n/nextcloud-client/nextcloud-client_${basever}.orig.tar.bz2; then
|
||||||
|
mv ${gitdir} nextcloud-client_${basever}
|
||||||
|
tar cjf nextcloud-client_${basever}.orig.tar.bz2 --exclude .git nextcloud-client_${basever}
|
||||||
|
mv nextcloud-client_${basever} ${gitdir}
|
||||||
|
origsourceopt="-sa"
|
||||||
|
fi
|
||||||
|
|
||||||
|
for distribution in xenial zesty artful stable; do
|
||||||
|
rm -rf nextcloud-client_${basever}
|
||||||
|
cp -a ${gitdir} nextcloud-client_${basever}
|
||||||
|
|
||||||
|
cd nextcloud-client_${basever}
|
||||||
|
|
||||||
|
cp -a tools/linux/debian/debian .
|
||||||
|
if test -d tools/linux/debian/debian.${distribution}; then
|
||||||
|
tar cf - -C tools/linux/debian/debian.${distribution} . | tar xf - -C debian
|
||||||
|
fi
|
||||||
|
|
||||||
|
tools/linux/debian/scripts/git2changelog.py /tmp/tmpchangelog ${distribution}
|
||||||
|
cp /tmp/tmpchangelog debian/changelog
|
||||||
|
if test -f tools/linux/debian/debian.${distribution}/changelog; then
|
||||||
|
cat tools/linux/debian/debian.${distribution}/changelog >> debian/changelog
|
||||||
|
else
|
||||||
|
cat tools/linux/debian/debian/changelog >> debian/changelog
|
||||||
|
fi
|
||||||
|
|
||||||
|
EDITOR=true dpkg-source --commit . local-changes
|
||||||
|
|
||||||
|
if test -f ~/.has_ppa_keys; then
|
||||||
|
debuild -S ${origsourceopt}
|
||||||
|
else
|
||||||
|
debuild -S ${origsourceopt} -us -uc
|
||||||
|
fi
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
done
|
||||||
|
|
||||||
|
elif [ "$TRAVIS_BUILD_STEP" == "ppa_deploy" ]; then
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
kind=`cat kind`
|
||||||
|
|
||||||
|
if test "$encrypted_5dafbd038603_key" -a "$encrypted_5dafbd038603_iv"; then
|
||||||
|
PPA=ppa:ivaradi/nextcloud-client-exp
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "kind: $kind"
|
||||||
|
|
||||||
|
if test "$kind" = "beta"; then
|
||||||
|
PPA=$PPA_BETA
|
||||||
|
OBS_PROJECT=$OBS_PROJECT_BETA
|
||||||
|
fi
|
||||||
|
OBS_SUBDIR="${OBS_PROJECT}/${OBS_PACKAGE}"
|
||||||
|
|
||||||
|
if test -f ~/.has_ppa_keys; then
|
||||||
|
for changes in nextcloud-client_*~+([a-z])1_source.changes; do
|
||||||
|
dput $PPA $changes > /dev/null
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
|
mkdir osc
|
||||||
|
cd osc
|
||||||
|
osc co ${OBS_PROJECT} ${OBS_PACKAGE}
|
||||||
|
if test "$(ls ${OBS_SUBDIR})"; then
|
||||||
|
osc delete ${OBS_SUBDIR}/*
|
||||||
|
fi
|
||||||
|
cp ../nextcloud-client*.orig.tar.* ${OBS_SUBDIR}/
|
||||||
|
cp ../nextcloud-client_*[0-9.][0-9].dsc ${OBS_SUBDIR}/
|
||||||
|
cp ../nextcloud-client_*[0-9.][0-9].debian.tar* ${OBS_SUBDIR}/
|
||||||
|
cp ../nextcloud-client_*[0-9.][0-9]_source.changes ${OBS_SUBDIR}/
|
||||||
|
osc add ${OBS_SUBDIR}/*
|
||||||
|
|
||||||
|
cd ${OBS_SUBDIR}
|
||||||
|
osc commit -m "Travis update"
|
||||||
|
fi
|
19
admin/linux/travis-build.sh
Executable file
19
admin/linux/travis-build.sh
Executable file
|
@ -0,0 +1,19 @@
|
||||||
|
#!/bin/bash
|
||||||
|
# Copyright (C) 2017 Marco Trevisan
|
||||||
|
|
||||||
|
set -xe
|
||||||
|
|
||||||
|
TRAVIS_BUILD_STEP="$1"
|
||||||
|
THIS_PATH=$(dirname $0)
|
||||||
|
|
||||||
|
if [ -z "$TRAVIS_BUILD_STEP" ]; then
|
||||||
|
echo "No travis build step defined"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [ "$BUILD_TYPE" == "debian" ]; then
|
||||||
|
tools/linux/debian/travis-build.sh "$@"
|
||||||
|
else
|
||||||
|
echo 'No $BUILD_TYPE defined'
|
||||||
|
exit 1
|
||||||
|
fi
|
Loading…
Reference in a new issue