[Pkg-javascript-commits] [rainloop] 37/38: Removed unnecessary dependency on node-babel-runtime. Restored .gitignore and makedeb.sh to upstream versions.

Daniel Ring techwolf-guest at moszumanska.debian.org
Fri Dec 15 06:04:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

techwolf-guest pushed a commit to branch master
in repository rainloop.

commit c9cb6bf114baa1cc63a58c0f34ea8797435801be
Author: Techwolf <dring at g33kworld.net>
Date:   Fri Oct 27 13:46:47 2017 -0700

    Removed unnecessary dependency on node-babel-runtime.
    Restored .gitignore and makedeb.sh to upstream versions.
---
 .gitignore     | 11 +---------
 debian/control |  1 -
 makedeb.sh     | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 70 insertions(+), 11 deletions(-)

diff --git a/.gitignore b/.gitignore
index 9dc3e64..51a9006 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,6 +1,5 @@
 /.idea
 /.vscode
-/.pc
 /api.php
 /error.log
 /nbproject
@@ -23,12 +22,4 @@
 .DS_Store
 /tests/fix.php
 /MULTIPLY
-/include.php
-
-#Debian packaging
-debian/.debhelper
-debian/debhelper-build-stamp
-debian/files
-debian/rainloop.debhelper.log
-debian/rainloop.substvars
-debian/rainloop/
+/include.php
\ No newline at end of file
diff --git a/debian/control b/debian/control
index f4fe2fd..f0d06f9 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,6 @@ Build-Depends:
  , node-uglify
  , webpack
  , node-babel-core
- , node-babel-runtime
  , node-babel-preset-env
  , node-babel-preset-stage-0
  , node-babel-plugin-transform-runtime
diff --git a/makedeb.sh b/makedeb.sh
new file mode 100755
index 0000000..7e576bb
--- /dev/null
+++ b/makedeb.sh
@@ -0,0 +1,69 @@
+#!/bin/bash
+#Build RainLoop Webmail Debian Package
+PACKAGEVERSION="0";
+
+#Build rainloop
+gulp build;
+cd build/dist/releases/webmail;
+cd $(ls -t);	#Most recent build folder
+
+#Working directory
+mkdir rainloop-deb-build;
+cd rainloop-deb-build;
+
+#Prepare zip file
+unzip ../rainloop-community-latest.zip;
+find . -type d -exec chmod 755 {} \;
+find . -type f -exec chmod 644 {} \;
+
+#Set up package directory
+VERSION=$(cat data/VERSION);
+DIR="rainloop_$VERSION-$PACKAGEVERSION";
+mkdir -m 0755 -p $DIR;
+mkdir -m 0755 -p $DIR/usr;
+mkdir -m 0755 -p $DIR/usr/share;
+mkdir -m 0755 -p $DIR/usr/share/rainloop;
+mkdir -m 0755 -p $DIR/var;
+mkdir -m 0755 -p $DIR/var/lib;
+
+#Move files into package directory
+mv rainloop $DIR/usr/share/rainloop/rainloop;
+mv index.php $DIR/usr/share/rainloop/index.php;
+mv data $DIR/var/lib/rainloop;
+
+#Update settings for Debian package
+sed -i "s/\$sCustomDataPath = '';/\$sCustomDataPath = '\/var\/lib\/rainloop';/" $DIR/usr/share/rainloop/rainloop/v/$VERSION/include.php
+
+#Set up Debian packaging tools
+cd $DIR;
+mkdir -m 0755 DEBIAN;
+
+#Create Debian packging control file
+cat >> DEBIAN/control <<-EOF
+	Package: rainloop
+	Version: $VERSION
+	Section: web
+	Priority: optional
+	Architecture: all
+	Depends: php5-fpm (>= 5.4), php5-curl, php5-json
+	Maintainer: Rainloop <support at rainloop.net>
+	Installed-Size: 20330
+	Description: Rainloop Webmail
+	 A modern PHP webmail client.
+EOF
+
+#Create Debian packaging post-install script
+cat >> DEBIAN/postinst <<-EOF
+	#!/bin/sh
+	chown -R www-data:www-data /var/lib/rainloop
+EOF
+chmod +x DEBIAN/postinst;
+
+#Build Debian package
+cd ..;
+fakeroot dpkg-deb -b $DIR;
+
+#Clean up
+mv $DIR.deb ..;
+cd ..;
+rm -rf rainloop-deb-build;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/rainloop.git



More information about the Pkg-javascript-commits mailing list