AzaToth has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/67999


Change subject: Initial debian build
......................................................................

Initial debian build

Change-Id: Ieb04d5602ab7463e1713a92774964c10291c6b6d
---
A debian/README.Debian
A debian/bin/buck
A debian/buck.1
A debian/changelog
A debian/compat
A debian/control
A debian/copyright
A debian/dirs
A debian/docs
A debian/install
A debian/manpages
A debian/patches/0001-do-not-include-jar-files-in-the-jar.patch
A debian/patches/series
A debian/rules
A debian/source/format
15 files changed, 236 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/operations/debs/buck 
refs/changes/99/67999/1

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..1848696
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,6 @@
+buck for Debian
+---------------
+
+Not installing "daemon"
+
+ -- Carl Fürstenberg <[email protected]>  Mon, 10 Jun 2013 23:31:59 +0200
diff --git a/debian/bin/buck b/debian/bin/buck
new file mode 100755
index 0000000..b9f2782
--- /dev/null
+++ b/debian/bin/buck
@@ -0,0 +1,56 @@
+#!/bin/bash
+
+DEPS_PATH="/usr/share/buck/jars/"
+SHARE_DIR=/usr/share/buck
+ETC_DIR=/etc/buck
+JAVA_CMD="/usr/bin/java"
+JAVA_OPTS="-Dbuck.daemon=false"
+
+# Hellishly bundled jars :(
+JAR_DEPS=(
+args4j.jar
+guava-14.0.1.jar
+ini4j-0.5.2.jar
+jackson-annotations-2.0.5.jar
+jackson-core-2.0.5.jar
+jackson-databind-2.0.5.jar
+jsr305.jar
+sdklib.jar
+ddmlib-r21.jar
+jython-standalone-2.5.3.jar
+jyson-1.0.2.jar
+astyanax-cassandra-1.56.38.jar
+astyanax-core-1.56.38.jar
+astyanax-thrift-1.56.38.jar
+cassandra-1.2.3.jar
+cassandra-thrift-1.2.3.jar
+commons-cli-1.1.jar
+commons-codec-1.2.jar
+commons-lang-2.6.jar
+high-scale-lib-1.1.2.jar
+joda-time-2.2.jar
+libthrift-0.7.0.jar
+log4j-1.2.16.jar
+slf4j-api-1.7.2.jar
+slf4j-log4j12-1.7.2.jar
+)
+
+JAR_DEPS=(${JAR_DEPS[@]/#/${DEPS_PATH}})
+SAVE_IFS=$IFS
+IFS=":"
+JAVA_CLASSPATH="$SHARE_DIR/buck.jar:${JAR_DEPS[*]}"
+IFS=$SAVE_IFS
+
+BUCK_JAVA_ARGS=(
+-XX:MaxPermSize=256m
+-Xmx1000m
+-Djava.awt.headless=true
+-Dbuck.path_to_buck_py=$SHARE_DIR/buck.py
+-Dbuck.path_to_intellij_py=$SHARE_DIR/intellij.py
+-Dlog4j.configuration=$ETC_DIR/log4j.properties
+-Dbuck.version_uid=0.0
+)
+
+JAVA_MAIN="com.facebook.buck.cli.Main"
+
+$JAVA_CMD $JAVA_OPTS ${BUCK_JAVA_ARGS[@]} -classpath $JAVA_CLASSPATH 
$JAVA_MAIN "$@"
diff --git a/debian/buck.1 b/debian/buck.1
new file mode 100644
index 0000000..28318c5
--- /dev/null
+++ b/debian/buck.1
@@ -0,0 +1,54 @@
+.\" DO NOT MODIFY THIS FILE!  It was generated by help2man 1.40.10.
+.TH BUCK "1" "June 2013" "buck version *N/A" "User Commands"
+.SH NAME
+buck \- manual page for buck version *N/A
+.SH DESCRIPTION
+buck build tool
+usage:
+.IP
+buck [options]
+buck command \fB\-\-help\fR
+buck command [command\-options]
+.SS "available commands:"
+.TP
+audit
+lists the inputs for the specified target
+.TP
+build
+builds the specified target
+.TP
+clean
+deletes any generated files
+.TP
+install
+builds and installs an APK
+.TP
+project
+generates project configuration files for an IDE
+.TP
+targets
+prints the list of buildable targets
+.TP
+test
+builds and runs the tests for the specified target
+.TP
+uninstall
+uninstalls an APK
+.SS "options:"
+.TP
+\fB\-\-help\fR
+: Shows this screen and exits.
+.HP
+\fB\-\-version\fR (\fB\-V\fR) : Show version number.
+.SH "SEE ALSO"
+The full documentation for
+.B buck
+is maintained as a Texinfo manual.  If the
+.B info
+and
+.B buck
+programs are properly installed at your site, the command
+.IP
+.B info buck
+.PP
+should give you access to the complete manual.
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..bb8f2a9
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+buck (0.0+g410fcf3-0) unstable; urgency=low
+
+  * Initial release
+
+ -- Carl Fürstenberg <[email protected]>  Tue, 11 Jun 2013 03:49:25 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..45a4fb7
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+8
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..e2075ed
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: buck
+Section: utils
+Priority: extra
+Maintainer: Carl Fürstenberg <[email protected]>
+Build-Depends: debhelper (>= 8.0.0)
+Standards-Version: 3.9.3
+
+Package: buck
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Build system for Android
+ encourages the creation of small, reusable modules
+ consisting of code and resources.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..8451f50
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,26 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: buck
+
+Files: *
+Copyright: 2012 Facebook inc.
+License: Apache-2.0
+
+Files: debian/*
+Copyright: 2013 Carl Fürstenberg <[email protected]>
+License: Apache-2.0
+
+License: Apache-2.0
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+ .
+ http://www.apache.org/licenses/LICENSE-2.0
+ .
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+ .
+ On Debian systems, the complete text of the Apache version 2.0 license
+ can be found in "/usr/share/common-licenses/Apache-2.0".
diff --git a/debian/dirs b/debian/dirs
new file mode 100644
index 0000000..c2566c4
--- /dev/null
+++ b/debian/dirs
@@ -0,0 +1,4 @@
+/usr/share/buck
+/usr/share/buck/jars/lib
+/usr/share/buck/jars/third-party/java/astyanax
+/etc/buck
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README.md
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..0b70230
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,33 @@
+build/buck.jar /usr/share/buck
+
+lib/args4j.jar /usr/share/buck/jars
+lib/guava-14.0.1.jar /usr/share/buck/jars
+lib/ini4j-0.5.2.jar /usr/share/buck/jars
+lib/jackson-annotations-2.0.5.jar /usr/share/buck/jars
+lib/jackson-core-2.0.5.jar /usr/share/buck/jars
+lib/jackson-databind-2.0.5.jar /usr/share/buck/jars
+lib/jsr305.jar /usr/share/buck/jars
+lib/sdklib.jar /usr/share/buck/jars
+lib/ddmlib-r21.jar /usr/share/buck/jars
+lib/jython-standalone-2.5.3.jar /usr/share/buck/jars
+lib/jyson-1.0.2.jar /usr/share/buck/jars
+
+third-party/java/astyanax/astyanax-cassandra-1.56.38.jar /usr/share/buck/jars
+third-party/java/astyanax/astyanax-core-1.56.38.jar /usr/share/buck/jars
+third-party/java/astyanax/astyanax-thrift-1.56.38.jar /usr/share/buck/jars
+third-party/java/astyanax/cassandra-1.2.3.jar /usr/share/buck/jars
+third-party/java/astyanax/cassandra-thrift-1.2.3.jar /usr/share/buck/jars
+third-party/java/astyanax/commons-cli-1.1.jar /usr/share/buck/jars
+third-party/java/astyanax/commons-codec-1.2.jar /usr/share/buck/jars
+third-party/java/astyanax/commons-lang-2.6.jar /usr/share/buck/jars
+third-party/java/astyanax/high-scale-lib-1.1.2.jar /usr/share/buck/jars
+third-party/java/astyanax/joda-time-2.2.jar /usr/share/buck/jars
+third-party/java/astyanax/libthrift-0.7.0.jar /usr/share/buck/jars
+third-party/java/astyanax/log4j-1.2.16.jar /usr/share/buck/jars
+third-party/java/astyanax/slf4j-api-1.7.2.jar /usr/share/buck/jars
+third-party/java/astyanax/slf4j-log4j12-1.7.2.jar /usr/share/buck/jars
+
+src/com/facebook/buck/command/intellij.py /usr/share/buck
+src/com/facebook/buck/parser/buck.py /usr/share/buck
+config/log4j.properties /etc/buck
+debian/bin/buck /usr/bin
diff --git a/debian/manpages b/debian/manpages
new file mode 100644
index 0000000..2c27a4f
--- /dev/null
+++ b/debian/manpages
@@ -0,0 +1 @@
+debian/buck.1
diff --git a/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch 
b/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch
new file mode 100644
index 0000000..c5df474
--- /dev/null
+++ b/debian/patches/0001-do-not-include-jar-files-in-the-jar.patch
@@ -0,0 +1,21 @@
+From: =?UTF-8?q?Carl=20F=C3=BCrstenberg?= <[email protected]>
+Date: Tue, 11 Jun 2013 01:45:10 +0200
+Subject: do not include jar files in the jar
+
+---
+ build.xml |    2 --
+ 1 file changed, 2 deletions(-)
+
+diff --git a/build.xml b/build.xml
+index f9886a8..6815189 100644
+--- a/build.xml
++++ b/build.xml
+@@ -113,8 +113,6 @@
+           description="build buck.jar"
+           >
+     <jar destfile="${build.dir}/buck.jar" update="true">
+-      <zipfileset refid="buck.jars" />
+-      <zipfileset refid="third-party.jars" />
+       <fileset dir="${src.dir}"
+                excludes="**/*.java, **/BUCK"
+                />
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..4ca15fc
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001-do-not-include-jar-files-in-the-jar.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..955dd78
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,13 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+%:
+       dh $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)

-- 
To view, visit https://gerrit.wikimedia.org/r/67999
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieb04d5602ab7463e1713a92774964c10291c6b6d
Gerrit-PatchSet: 1
Gerrit-Project: operations/debs/buck
Gerrit-Branch: master
Gerrit-Owner: AzaToth <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to