Remove mlpack conf; it will live in its own repo (fake commit during svn to git
transition).
This commit is contained in:
@@ -1,21 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Bash post-commit hook for subversion repository
|
||||
# triggers build on jenkis where reposititory is
|
||||
# checked out
|
||||
|
||||
# 2011 Sterling Peet <sterling.peet@gatech.edu>
|
||||
|
||||
REPOS="$1"
|
||||
REV="$2"
|
||||
JENKINS="http://hotwheels.cc.gt.atl.ga.us:8080"
|
||||
|
||||
UUID=`svnlook uuid $REPOS`
|
||||
/usr/bin/wget \
|
||||
--header `wget -q --output-document - \
|
||||
"${JENKINS}/crumbIssuer/api/xml?xpath=concat(//crumbRequestField,\":\",//crumb)"` \
|
||||
--post-data "`svnlook changed --revision $REV $REPOS`" \
|
||||
--output-document "-" \
|
||||
--timeout=2 \
|
||||
${JENKINS}/subversion/${UUID}/notifyCommit?rev=$REV
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
DATA_FILE="reports/sloccount.sc"
|
||||
DATA_DIR="reports/slocdata"
|
||||
SRC_DIR="repo"
|
||||
|
||||
if [ ! -d $DATA_DIR ]
|
||||
then
|
||||
mkdir -p $DATA_DIR
|
||||
fi
|
||||
|
||||
sloccount --wide --details --datadir $DATA_DIR ${SRC_DIR}/CMake ${SRC_DIR}/fastlib ${SRC_DIR}/include ${SRC_DIR}/mlpack ${SRC_DIR}/physpack ${SRC_DIR}/script ${SRC_DIR}/util > $DATA_FILE
|
||||
|
||||
#mv $DATA_FILE $DATA_DIR
|
||||
@@ -1,41 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Options
|
||||
TEST_DIR="build/bin"
|
||||
REPORT_DIR="reports/tests"
|
||||
TEST_OPTS="--report_level=detailed --log_level=test_suite --log_format=xml"
|
||||
XML_REGEX="[:print:]"
|
||||
|
||||
echo "Wipe out old reports"
|
||||
mkdir -p $REPORT_DIR
|
||||
rm -rf $REPORT_DIR/*
|
||||
|
||||
echo "Finding test Binaries"
|
||||
TEST_BINS=$(find $TEST_DIR -iname "*_test")
|
||||
|
||||
echo "Copy test_data_3_1000.csv to current working directory"
|
||||
cp ./*/src/mlpack/methods/neighbor_search/test_data_3_1000.csv .
|
||||
|
||||
echo "Copy ARFF files for NBC test to current working directory"
|
||||
cp ./*/src/mlpack/methods/naive_bayes/*.arff .
|
||||
cp ./*/src/mlpack/core/data/test/fake* .
|
||||
|
||||
echo "Running All Tests:"
|
||||
for ML_TEST in ${TEST_BINS}
|
||||
do
|
||||
echo "[$(basename $(pwd))] $ML_TEST"
|
||||
./$ML_TEST $TEST_OPTS > $REPORT_DIR/$(basename $ML_TEST).xml
|
||||
done
|
||||
|
||||
echo "Finding Boost.Test Results:"
|
||||
BOOST_RESULTS=$(grep -l "<TestLog>" $REPORT_DIR/*)
|
||||
for BOOST_TEST in ${BOOST_RESULTS}
|
||||
do
|
||||
BOOST_BASENAME=$(basename $BOOST_TEST)
|
||||
echo "Found boost_$BOOST_BASENAME"
|
||||
#mv $BOOST_TEST $REPORT_DIR/boost_$BOOST_BASENAME
|
||||
cat $BOOST_TEST | tr -cd $XML_REGEX > $REPORT_DIR/boost_$BOOST_BASENAME
|
||||
done
|
||||
|
||||
echo "Cleaning up working directory"
|
||||
rm test_data*
|
||||
@@ -1,16 +0,0 @@
|
||||
In order to check in new packaging source, use the svn-inject command. It
|
||||
can be used with the FASTLAB repository in the following manner, assuming
|
||||
you DO NOT want to store the upstream source in the repository. If you
|
||||
do this, you need to provide a watch file and get-orig-source target in the
|
||||
rules file, so anyone who checks out the packaging can build the package.
|
||||
|
||||
Alternatively or complimentary to the get-orig-source target, consider using
|
||||
a helper script found in the debian folder with the watch file. This way,
|
||||
the person trying to replicate your package can use
|
||||
uscan --download-current-version to get the original source tarball, and
|
||||
automated scripts will know how to put that source tarball in the right
|
||||
place to built the package.
|
||||
|
||||
svn-inject -o --no-branches /path/to/<package>_<version>.dsc http://svn.cc.gatech.edu/fastlab/fastlib/conf/packages/
|
||||
|
||||
|
||||
@@ -1,16 +0,0 @@
|
||||
# - Config file for the Armadillo package
|
||||
# It defines the following variables
|
||||
# ARMADILLO_INCLUDE_DIRS - include directories for Armadillo
|
||||
# ARMADILLO_LIBRARY_DIRS - library directories for Armadillo (normally not used!)
|
||||
# ARMADILLO_LIBRARIES - libraries to link against
|
||||
|
||||
# Tell the user project where to find our headers and libraries
|
||||
set(ARMADILLO_INCLUDE_DIRS "/home/speet3/src/armadillo/armadillo-1.2.0;/home/speet3/src/armadillo/armadillo-1.2.0")
|
||||
set(ARMADILLO_LIBRARY_DIRS "/home/speet3/src/armadillo/armadillo-1.2.0")
|
||||
|
||||
# Our library dependencies (contains definitions for IMPORTED targets)
|
||||
include("/home/speet3/src/armadillo/armadillo-1.2.0/ArmadilloLibraryDepends.cmake")
|
||||
|
||||
# These are IMPORTED targets created by ArmadilloLibraryDepends.cmake
|
||||
set(ARMADILLO_LIBRARIES armadillo)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
set(PACKAGE_VERSION "")
|
||||
|
||||
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
||||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
-16
@@ -1,16 +0,0 @@
|
||||
# - Config file for the Armadillo package
|
||||
# It defines the following variables
|
||||
# ARMADILLO_INCLUDE_DIRS - include directories for Armadillo
|
||||
# ARMADILLO_LIBRARY_DIRS - library directories for Armadillo (normally not used!)
|
||||
# ARMADILLO_LIBRARIES - libraries to link against
|
||||
|
||||
# Tell the user project where to find our headers and libraries
|
||||
set(ARMADILLO_INCLUDE_DIRS "/usr/include")
|
||||
set(ARMADILLO_LIBRARY_DIRS "/usr/lib")
|
||||
|
||||
# Our library dependencies (contains definitions for IMPORTED targets)
|
||||
include("/usr/share/Armadillo/CMake/ArmadilloLibraryDepends.cmake")
|
||||
|
||||
# These are IMPORTED targets created by ArmadilloLibraryDepends.cmake
|
||||
set(ARMADILLO_LIBRARIES armadillo)
|
||||
|
||||
-11
@@ -1,11 +0,0 @@
|
||||
set(PACKAGE_VERSION "")
|
||||
|
||||
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
||||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
@@ -1,22 +0,0 @@
|
||||
Patch system for armadillo
|
||||
==========================
|
||||
|
||||
This package uses quilt to maintain local changes to the speech-tools
|
||||
distribution. The Debian-specific patches are maintained in the debian/patches/
|
||||
directory.
|
||||
|
||||
To apply all the patches, preparing the source for building, use:
|
||||
debian/rules patch
|
||||
|
||||
To revert the patches, preparing to build a source package, use:
|
||||
debian/rules unpatch
|
||||
|
||||
You do not need to manually execute these targets when building the package;
|
||||
they are part of the debian/rules target chain.
|
||||
|
||||
For more information on the quilt integration with Debian packages, as well as
|
||||
editing, adding or removing patches, please see the quilt documentation; in
|
||||
recent versions of the Debian package of quilt, See:
|
||||
/usr/share/doc/quilt/README.source
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org>, Sat, 19 Dec 2009 01:45:05 -0600
|
||||
@@ -1,136 +0,0 @@
|
||||
armadillo (1.2.0+dfsg-0ubuntu1) natty; urgency=low
|
||||
|
||||
* Latest stable release
|
||||
* Rebuild package for Ubuntu, (fork from debian)
|
||||
|
||||
-- Sterling Peet <sterling.peet@gatech.edu> Thu, 16 Jun 2011 10:45:15 -0400
|
||||
|
||||
armadillo (1.1.92+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Remove patches/no_lib64.diff; include definition in rules file for lib
|
||||
directory.
|
||||
* Add binary-indep to the rules file.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 06 Apr 2011 01:35:19 -0500
|
||||
|
||||
armadillo (1.1.90+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 23 Mar 2011 16:17:03 -0500
|
||||
|
||||
armadillo (1.1.4+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Don't generate Doxygen docs anymore (Build-Depend on doxygen removed)
|
||||
* Add missing copyright information
|
||||
* Repack to be DFSG compliant
|
||||
* Preserve config.hpp during clean operation
|
||||
* Remove doc package; documentation now in dev package
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sun, 20 Feb 2011 18:00:25 -0600
|
||||
|
||||
armadillo (1.1.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Bump soname to 1
|
||||
* Don't compress C++ example files
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Tue, 15 Feb 2011 23:34:00 -0600
|
||||
|
||||
armadillo (1.0.0-1) experimental; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Fix cleanup routine in debian/rules.
|
||||
* Standards version is now 3.9.1 (no changes needed)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Thu, 25 Nov 2010 08:17:45 -0600
|
||||
|
||||
armadillo (0.9.52-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Update Standards Version to 3.9.0 (No changes needed)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sun, 25 Jul 2010 09:24:52 -0500
|
||||
|
||||
armadillo (0.9.8-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 17 May 2010 14:33:25 -0500
|
||||
|
||||
armadillo (0.9.4-1) unstable; urgency=low
|
||||
|
||||
* New Upstream Release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 20 Mar 2010 08:53:13 -0500
|
||||
|
||||
armadillo (0.9.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Thu, 04 Mar 2010 22:16:57 -0600
|
||||
|
||||
armadillo (0.9.0-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 17 Feb 2010 10:09:34 -0600
|
||||
|
||||
armadillo (0.8.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards Version is now 3.8.4 (No changes needed)
|
||||
* Add {$misc:Depends} to all packages.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 03 Feb 2010 06:04:11 -0600
|
||||
|
||||
armadillo (0.8.0-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards Version is now 3.8.3 (no changes needed)
|
||||
* Update watch file.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 19 Dec 2009 01:41:31 -0600
|
||||
|
||||
armadillo (0.6.12-2) unstable; urgency=low
|
||||
|
||||
* Add boost dependency. Thanks to Dirk Eddelbuettel for bringing this to
|
||||
my notice. In particular, use libboost-math-dev and
|
||||
libboost-date-time-dev.
|
||||
* Fix echo -e bashism. Thanks to Raphael Geissert for pointing
|
||||
this out. (Closes: #535371)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 27 Jul 2009 09:17:46 -0500
|
||||
|
||||
armadillo (0.6.12-1) UNRELEASED; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards version is now 3.8.2 (no changes).
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 06 Jul 2009 06:30:45 -0400
|
||||
|
||||
armadillo (0.6.10-2) unstable; urgency=low
|
||||
|
||||
* debian/control: Add quilt to Build-Depends.
|
||||
* debian/patches: no_lib64.diff
|
||||
+ Patch to use lib64 always.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 09 May 2009 18:14:29 -0500
|
||||
|
||||
armadillo (0.6.10-1) unstable; urgency=low
|
||||
|
||||
* New Upstream Version
|
||||
* Update copyright: correct to mention that package is licensed under
|
||||
LGPL v3 or later.
|
||||
* Place library in /usr/lib64.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 09 May 2009 16:54:18 -0500
|
||||
|
||||
armadillo (0.6.2-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes: #521978)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 25 Mar 2009 15:02:42 -0500
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
7
|
||||
@@ -1,37 +0,0 @@
|
||||
Source: armadillo
|
||||
Priority: optional
|
||||
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
|
||||
Uploaders: Kumar Appaiah <akumar@debian.org>
|
||||
Build-Depends: debhelper (>= 7), libblas-dev, liblapack-dev, cmake, libboost-math-dev (>= 1.3.4), libboost-date-time-dev (>= 1.3.4)
|
||||
Standards-Version: 3.9.1
|
||||
Section: libs
|
||||
Homepage: http://arma.sourceforge.net/
|
||||
Vcs-Git: git://git.debian.org/git/debian-science/packages/armadillo.git
|
||||
Vcs-Browser: http://git.debian.org/?p=debian-science/packages/armadillo.git
|
||||
|
||||
Package: libarmadillo-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Suggests: libitpp-dev
|
||||
Depends: libarmadillo1 (= ${binary:Version}), ${misc:Depends}
|
||||
Replaces: libarmadillo-doc (<= 1.1.2-1)
|
||||
Conflicts: libarmadillo-doc
|
||||
Description: streamlined C++ linear algebra library - Headers
|
||||
Armadillo is a streamlined C++ linear algebra library (matrix maths)
|
||||
aiming towards a good balance between speed and ease of use. Integer,
|
||||
floating point and complex numbers are supported, as well as a subset
|
||||
of trigonometric and statistics functions. Optional integration with
|
||||
LAPACK and ATLAS libraries is also provided.
|
||||
.
|
||||
This package has the development libraries and headers for Armadillo.
|
||||
|
||||
Package: libarmadillo1
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: streamlined C++ linear algebra library
|
||||
Armadillo is a streamlined C++ linear algebra library (matrix maths)
|
||||
aiming towards a good balance between speed and ease of use. Integer,
|
||||
floating point and complex numbers are supported, as well as a subset
|
||||
of trigonometric and statistics functions. Optional integration with
|
||||
LAPACK and ATLAS libraries is also provided.
|
||||
@@ -1,76 +0,0 @@
|
||||
This package was debianized by Kumar Appaiah <akumar@debian.org> on
|
||||
Wed, 25 Mar 2009 15:02:42 -0500.
|
||||
|
||||
It was downloaded from <http://arma.sourceforge.net>
|
||||
|
||||
Upstream Author:
|
||||
|
||||
Conrad Sanderson <conradsand ! ieee !org> (Change first `!' to `@', second one to `.')
|
||||
|
||||
Contributors:
|
||||
Justin Bedo
|
||||
Ian Cullinan
|
||||
Charles Gretton
|
||||
Oka Kurniawan
|
||||
Adam Piątyszek
|
||||
Ola Rinta-Koski
|
||||
Laurianne Sitbon
|
||||
Yong Kang Wong
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright © 2008 - 2011 NICTA
|
||||
|
||||
This program is licensed under the GNU Lesser General Public License
|
||||
(LGPL), and you may use and redistribute the software under the LGPL
|
||||
version 3, or (at your option) any later version.
|
||||
|
||||
LGPL:
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU Library General
|
||||
Public License can be found in `/usr/share/common-licenses/LGPL'.
|
||||
|
||||
Files in build_aux/cmake/Modules:
|
||||
Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
|
||||
Redistribution and use is allowed according to the terms of the BSD license.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the author may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The Debian packaging is © 2009-2011, Kumar Appaiah <akumar@debian.org>
|
||||
and is licensed under the GNU General Public License version 2. On
|
||||
Debian systems, the complete text of the GNU General Public License
|
||||
can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Borrowed from Raphael Geissert's Debian PHP repack script.
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "$3" ] && [ ! -f "$1" ]; then
|
||||
echo "This script must be run via uscan or by manually specifying the tarball" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tarball=
|
||||
|
||||
[ -f "$3" ] && tarball="$3"
|
||||
[ -z "$tarball" -a -f "$1" ] && tarball="$1"
|
||||
|
||||
fname="$(basename "$tarball")"
|
||||
tarball="$(readlink -f "$tarball")"
|
||||
|
||||
tdir="$(mktemp -d)"
|
||||
trap '[ ! -d "$tdir" ] || rm -r "$tdir"' EXIT
|
||||
|
||||
zcat "$tarball" | tar --wildcards --delete '*/examples/lib_win32' --delete '*/examples*_win32' --delete '*/docs/*pdf' > "$tdir/${fname/.gz}"
|
||||
#touch -m -r "$tarball" "$tdir/${fname/.gz}"
|
||||
gzip -9 "$tdir/${fname/.gz}"
|
||||
|
||||
mv "$tarball" "$tarball.bkp"
|
||||
tarballdfsg=$(echo $3|sed 's/\.orig\.tar\.gz/+dfsg.orig.tar.gz/')
|
||||
echo Writing $tarballdfsg
|
||||
mv "$tdir/$fname" "$tarballdfsg"
|
||||
-12
@@ -1,12 +0,0 @@
|
||||
Document: armadillo
|
||||
Title: Armadillo Manual
|
||||
Author: Conrad Sanderson
|
||||
Abstract: This manual contains the Armadillo technical documentation
|
||||
which documents the various features and methods provided in
|
||||
the Armadillo library for vector and matrix based mathematical
|
||||
computations.
|
||||
Section: Science/Mathematics
|
||||
|
||||
Format: HTML
|
||||
Index: /usr/share/doc/libarmadillo-dev/index.html
|
||||
Files: /usr/share/doc/libarmadillo-dev/*.html
|
||||
@@ -1 +0,0 @@
|
||||
docs/*
|
||||
-1
@@ -1 +0,0 @@
|
||||
examples/*
|
||||
-2
@@ -1,2 +0,0 @@
|
||||
usr/include/* usr/include
|
||||
usr/lib/lib*.so usr/lib
|
||||
@@ -1 +0,0 @@
|
||||
README.txt
|
||||
@@ -1 +0,0 @@
|
||||
usr/lib/*.so.* usr/lib
|
||||
@@ -1,66 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
||||
else
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE)
|
||||
endif
|
||||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
./configure
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: config.status
|
||||
dh_testdir
|
||||
cmake -D INSTALL_LIB_DIR=lib -D CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT:BOOL=ON . # specified to install to the debian/tmp directory.
|
||||
$(MAKE)
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
rm -rf debian/doc_gen
|
||||
[ ! -f Makefile ] || $(MAKE) clean
|
||||
rm -f config.guess config.sub Makefile
|
||||
rm -f CMakeCache.txt cmake_install.cmake
|
||||
rm -rf CMakeFiles
|
||||
rm -f install_manifest.txt
|
||||
dh_clean --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
|
||||
dh_installdirs
|
||||
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr install DESTDIR=debian/tmp
|
||||
|
||||
binary-arch: build install
|
||||
dh_testdir -a
|
||||
dh_testroot -a
|
||||
dh_installchangelogs -a
|
||||
dh_installdocs -a
|
||||
dh_installexamples -a
|
||||
dh_install -a --sourcedir=debian/tmp
|
||||
dh_installman -a
|
||||
dh_link -a
|
||||
dh_strip -a
|
||||
dh_compress -a -X.cpp
|
||||
dh_fixperms -a
|
||||
dh_makeshlibs -a
|
||||
dh_installdeb -a
|
||||
dh_shlibdeps -a
|
||||
dh_gencontrol -a
|
||||
dh_md5sums -a
|
||||
dh_builddeb -a
|
||||
|
||||
binary-indep: build install
|
||||
# Currently no arch-independent packages
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-arch binary install
|
||||
@@ -1,6 +0,0 @@
|
||||
version=3
|
||||
#http://sf.net/arma/armadillo-(.*)\.tar\.gz
|
||||
opts=filenamemangle=s/.*armadillo-(.*)\.tar\.gz\/download/armadillo-$1.tar.gz/,\
|
||||
dversionmangle=s/\+dfsg// \
|
||||
http://sourceforge.net/projects/arma/files armadillo-(.*)\.tar\.gz/download debian bash debian/dfsg-repack.sh
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
# The generated "Makefile" from "Makefile.cmake" is only usable after
|
||||
# the Armadillo library has been configured and installed by CMake.
|
||||
|
||||
CXX=g++
|
||||
#CXX=g++-4.2
|
||||
## Under MacOS you may have an old compiler as default (e.g. GCC 4.0).
|
||||
## However, GCC 4.2 or later is available and preferable due to better
|
||||
## handling of template code.
|
||||
|
||||
#CXX=CC
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
# flags configured by CMake
|
||||
ifeq (unix,macos)
|
||||
EXTRA_LIB_FLAGS = -framework Accelerate
|
||||
endif
|
||||
|
||||
#EXTRA_LIB_FLAGS = -library=sunperf
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
ifeq (true,true)
|
||||
BOOST_INCLUDE_FLAG = -I /usr/include
|
||||
endif
|
||||
|
||||
|
||||
|
||||
LIB_FLAGS = -larmadillo $(EXTRA_LIB_FLAGS)
|
||||
## NOTE: on Ubuntu and Debian based systems you may need to add
|
||||
## -lgfortran to LIB_FLAGS
|
||||
|
||||
|
||||
|
||||
OPT = -O1
|
||||
## As the Armadillo library uses recursive templates,
|
||||
## compilation times depend on the level of optimisation:
|
||||
##
|
||||
## -O0: quick compilation, but the resulting program will be slow
|
||||
## -O1: produces programs which achieve most of the possible speedup
|
||||
## -O3: produces programs which have almost all possible speedups,
|
||||
## but compilation takes considerably longer
|
||||
|
||||
|
||||
#OPT = -xO4 -xannotate=no
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
#EXTRA_OPT = -fwhole-program
|
||||
## Uncomment the above line if you're compiling
|
||||
## all source files into one program in a single hit.
|
||||
|
||||
|
||||
#DEBUG = -DARMA_EXTRA_DEBUG
|
||||
## Uncomment the above line to enable low-level
|
||||
## debugging. Lots of debugging information will
|
||||
## be printed when a compiled program is run.
|
||||
## Please enable this option when reporting bugs.
|
||||
|
||||
|
||||
#FINAL = -DARMA_NO_DEBUG
|
||||
## Uncomment the above line to disable Armadillo's checks.
|
||||
## DANGEROUS! Not recommended unless your code has been
|
||||
## thoroughly tested.
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
CXXFLAGS = $(BOOST_INCLUDE_FLAG) $(DEBUG) $(FINAL) $(OPT) $(EXTRA_OPT)
|
||||
|
||||
all: example1 example2
|
||||
|
||||
example1: example1.cpp
|
||||
$(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS)
|
||||
|
||||
example2: example2.cpp
|
||||
$(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS)
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f example1 example2
|
||||
|
||||
-69
@@ -1,69 +0,0 @@
|
||||
// Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
|
||||
// Copyright (C) 2008-2011 Conrad Sanderson
|
||||
//
|
||||
// This file is part of the Armadillo C++ library.
|
||||
// It is provided without any warranty of fitness
|
||||
// for any purpose. You can redistribute this file
|
||||
// and/or modify it under the terms of the GNU
|
||||
// Lesser General Public License (LGPL) as published
|
||||
// by the Free Software Foundation, either version 3
|
||||
// of the License or (at your option) any later version.
|
||||
// (see http://www.opensource.org/licenses for more info)
|
||||
|
||||
|
||||
|
||||
#if !defined(ARMA_USE_LAPACK)
|
||||
#define ARMA_USE_LAPACK
|
||||
//// Uncomment the above line if you have LAPACK or a fast replacement for LAPACK,
|
||||
//// such as Intel's MKL, AMD's ACML, or the Accelerate framework.
|
||||
//// LAPACK is required for matrix decompositions (eg. SVD) and matrix inverse.
|
||||
#endif
|
||||
|
||||
#if !defined(ARMA_USE_BLAS)
|
||||
#define ARMA_USE_BLAS
|
||||
//// Uncomment the above line if you have BLAS or a fast replacement for BLAS,
|
||||
//// such as GotoBLAS, Intel's MKL, AMD's ACML, or the Accelerate framework.
|
||||
//// BLAS is used for matrix multiplication.
|
||||
//// Without BLAS, matrix multiplication will still work, but might be slower.
|
||||
#endif
|
||||
|
||||
// #define ARMA_BLAS_LONG
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries use "long" instead of "int"
|
||||
|
||||
// #define ARMA_BLAS_LONG_LONG
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries use "long long" instead of "int"
|
||||
|
||||
#define ARMA_BLAS_UNDERSCORE
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries have function names with a trailing underscore.
|
||||
//// Conversely, comment it out if the function names don't have a trailing underscore.
|
||||
|
||||
// #define ARMA_BLAS_CAPITALS
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries have capitalised function names (eg. ACML on 64-bit Windows)
|
||||
|
||||
#if !defined(ARMA_MAT_PREALLOC)
|
||||
#define ARMA_MAT_PREALLOC 16
|
||||
#endif
|
||||
//// This is the number of preallocated elements used by matrices and vectors;
|
||||
//// it must be an integer that is at least 1.
|
||||
//// If you mainly use lots of very small vectors (eg. <= 4 elements),
|
||||
//// change the number to the size of your vectors.
|
||||
|
||||
/* #undef ARMA_USE_ATLAS */
|
||||
#define ARMA_ATLAS_INCLUDE_DIR /
|
||||
//// If you're using ATLAS and the compiler can't find cblas.h and/or clapack.h
|
||||
//// uncomment the above define and specify the appropriate include directory.
|
||||
//// Make sure the directory has a trailing /
|
||||
|
||||
#define ARMA_USE_BOOST
|
||||
#define ARMA_USE_BOOST_DATE
|
||||
|
||||
#define ARMA_HAVE_STD_ISFINITE
|
||||
#define ARMA_HAVE_STD_ISINF
|
||||
#define ARMA_HAVE_STD_ISNAN
|
||||
#define ARMA_HAVE_STD_SNPRINTF
|
||||
|
||||
#define ARMA_HAVE_LOG1P
|
||||
#define ARMA_HAVE_GETTIMEOFDAY
|
||||
|
||||
// #define ARMA_EXTRA_DEBUG
|
||||
// #define ARMA_NO_DEBUG
|
||||
@@ -1,16 +0,0 @@
|
||||
# - Config file for the Armadillo package
|
||||
# It defines the following variables
|
||||
# ARMADILLO_INCLUDE_DIRS - include directories for Armadillo
|
||||
# ARMADILLO_LIBRARY_DIRS - library directories for Armadillo (normally not used!)
|
||||
# ARMADILLO_LIBRARIES - libraries to link against
|
||||
|
||||
# Tell the user project where to find our headers and libraries
|
||||
set(ARMADILLO_INCLUDE_DIRS "/home/speet3/src/armadillo/armadillo-1.2.0;/home/speet3/src/armadillo/armadillo-1.2.0")
|
||||
set(ARMADILLO_LIBRARY_DIRS "/home/speet3/src/armadillo/armadillo-1.2.0")
|
||||
|
||||
# Our library dependencies (contains definitions for IMPORTED targets)
|
||||
include("/home/speet3/src/armadillo/armadillo-1.2.0/ArmadilloLibraryDepends.cmake")
|
||||
|
||||
# These are IMPORTED targets created by ArmadilloLibraryDepends.cmake
|
||||
set(ARMADILLO_LIBRARIES armadillo)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
set(PACKAGE_VERSION "")
|
||||
|
||||
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
||||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
@@ -1,16 +0,0 @@
|
||||
# - Config file for the Armadillo package
|
||||
# It defines the following variables
|
||||
# ARMADILLO_INCLUDE_DIRS - include directories for Armadillo
|
||||
# ARMADILLO_LIBRARY_DIRS - library directories for Armadillo (normally not used!)
|
||||
# ARMADILLO_LIBRARIES - libraries to link against
|
||||
|
||||
# Tell the user project where to find our headers and libraries
|
||||
set(ARMADILLO_INCLUDE_DIRS "/usr/include")
|
||||
set(ARMADILLO_LIBRARY_DIRS "/usr/lib")
|
||||
|
||||
# Our library dependencies (contains definitions for IMPORTED targets)
|
||||
include("/usr/share/Armadillo/CMake/ArmadilloLibraryDepends.cmake")
|
||||
|
||||
# These are IMPORTED targets created by ArmadilloLibraryDepends.cmake
|
||||
set(ARMADILLO_LIBRARIES armadillo)
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
set(PACKAGE_VERSION "")
|
||||
|
||||
# Check whether the requested PACKAGE_FIND_VERSION is compatible
|
||||
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_COMPATIBLE FALSE)
|
||||
else()
|
||||
set(PACKAGE_VERSION_COMPATIBLE TRUE)
|
||||
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
|
||||
set(PACKAGE_VERSION_EXACT TRUE)
|
||||
endif()
|
||||
endif()
|
||||
@@ -1,22 +0,0 @@
|
||||
Patch system for armadillo
|
||||
==========================
|
||||
|
||||
This package uses quilt to maintain local changes to the speech-tools
|
||||
distribution. The Debian-specific patches are maintained in the debian/patches/
|
||||
directory.
|
||||
|
||||
To apply all the patches, preparing the source for building, use:
|
||||
debian/rules patch
|
||||
|
||||
To revert the patches, preparing to build a source package, use:
|
||||
debian/rules unpatch
|
||||
|
||||
You do not need to manually execute these targets when building the package;
|
||||
they are part of the debian/rules target chain.
|
||||
|
||||
For more information on the quilt integration with Debian packages, as well as
|
||||
editing, adding or removing patches, please see the quilt documentation; in
|
||||
recent versions of the Debian package of quilt, See:
|
||||
/usr/share/doc/quilt/README.source
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org>, Sat, 19 Dec 2009 01:45:05 -0600
|
||||
@@ -1,142 +0,0 @@
|
||||
armadillo (2.0.2+dfsg-0ubuntu1) natty; urgency=low
|
||||
|
||||
* New upstream release
|
||||
|
||||
-- Sterling Peet <sterling.peet@gatech.edu> Mon, 18 Jul 2011 16:32:21 -0400
|
||||
|
||||
armadillo (1.2.0+dfsg-0ubuntu1) natty; urgency=low
|
||||
|
||||
* Latest stable release
|
||||
* Rebuild package for Ubuntu, (fork from debian)
|
||||
|
||||
-- Sterling Peet <sterling.peet@gatech.edu> Thu, 16 Jun 2011 10:45:15 -0400
|
||||
|
||||
armadillo (1.1.92+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Remove patches/no_lib64.diff; include definition in rules file for lib
|
||||
directory.
|
||||
* Add binary-indep to the rules file.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 06 Apr 2011 01:35:19 -0500
|
||||
|
||||
armadillo (1.1.90+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 23 Mar 2011 16:17:03 -0500
|
||||
|
||||
armadillo (1.1.4+dfsg-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Don't generate Doxygen docs anymore (Build-Depend on doxygen removed)
|
||||
* Add missing copyright information
|
||||
* Repack to be DFSG compliant
|
||||
* Preserve config.hpp during clean operation
|
||||
* Remove doc package; documentation now in dev package
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sun, 20 Feb 2011 18:00:25 -0600
|
||||
|
||||
armadillo (1.1.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release
|
||||
* Bump soname to 1
|
||||
* Don't compress C++ example files
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Tue, 15 Feb 2011 23:34:00 -0600
|
||||
|
||||
armadillo (1.0.0-1) experimental; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Fix cleanup routine in debian/rules.
|
||||
* Standards version is now 3.9.1 (no changes needed)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Thu, 25 Nov 2010 08:17:45 -0600
|
||||
|
||||
armadillo (0.9.52-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Update Standards Version to 3.9.0 (No changes needed)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sun, 25 Jul 2010 09:24:52 -0500
|
||||
|
||||
armadillo (0.9.8-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 17 May 2010 14:33:25 -0500
|
||||
|
||||
armadillo (0.9.4-1) unstable; urgency=low
|
||||
|
||||
* New Upstream Release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 20 Mar 2010 08:53:13 -0500
|
||||
|
||||
armadillo (0.9.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Thu, 04 Mar 2010 22:16:57 -0600
|
||||
|
||||
armadillo (0.9.0-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 17 Feb 2010 10:09:34 -0600
|
||||
|
||||
armadillo (0.8.2-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards Version is now 3.8.4 (No changes needed)
|
||||
* Add {$misc:Depends} to all packages.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 03 Feb 2010 06:04:11 -0600
|
||||
|
||||
armadillo (0.8.0-1) unstable; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards Version is now 3.8.3 (no changes needed)
|
||||
* Update watch file.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 19 Dec 2009 01:41:31 -0600
|
||||
|
||||
armadillo (0.6.12-2) unstable; urgency=low
|
||||
|
||||
* Add boost dependency. Thanks to Dirk Eddelbuettel for bringing this to
|
||||
my notice. In particular, use libboost-math-dev and
|
||||
libboost-date-time-dev.
|
||||
* Fix echo -e bashism. Thanks to Raphael Geissert for pointing
|
||||
this out. (Closes: #535371)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 27 Jul 2009 09:17:46 -0500
|
||||
|
||||
armadillo (0.6.12-1) UNRELEASED; urgency=low
|
||||
|
||||
* New upstream release.
|
||||
* Standards version is now 3.8.2 (no changes).
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Mon, 06 Jul 2009 06:30:45 -0400
|
||||
|
||||
armadillo (0.6.10-2) unstable; urgency=low
|
||||
|
||||
* debian/control: Add quilt to Build-Depends.
|
||||
* debian/patches: no_lib64.diff
|
||||
+ Patch to use lib64 always.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 09 May 2009 18:14:29 -0500
|
||||
|
||||
armadillo (0.6.10-1) unstable; urgency=low
|
||||
|
||||
* New Upstream Version
|
||||
* Update copyright: correct to mention that package is licensed under
|
||||
LGPL v3 or later.
|
||||
* Place library in /usr/lib64.
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Sat, 09 May 2009 16:54:18 -0500
|
||||
|
||||
armadillo (0.6.2-1) unstable; urgency=low
|
||||
|
||||
* Initial release (Closes: #521978)
|
||||
|
||||
-- Kumar Appaiah <akumar@debian.org> Wed, 25 Mar 2009 15:02:42 -0500
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
7
|
||||
@@ -1,37 +0,0 @@
|
||||
Source: armadillo
|
||||
Priority: optional
|
||||
Maintainer: Debian Science Maintainers <debian-science-maintainers@lists.alioth.debian.org>
|
||||
Uploaders: Kumar Appaiah <akumar@debian.org>
|
||||
Build-Depends: debhelper (>= 7), libblas-dev, liblapack-dev, cmake, libboost-math-dev (>= 1.3.4), libboost-date-time-dev (>= 1.3.4)
|
||||
Standards-Version: 3.9.1
|
||||
Section: libs
|
||||
Homepage: http://arma.sourceforge.net/
|
||||
Vcs-Git: git://git.debian.org/git/debian-science/packages/armadillo.git
|
||||
Vcs-Browser: http://git.debian.org/?p=debian-science/packages/armadillo.git
|
||||
|
||||
Package: libarmadillo-dev
|
||||
Section: libdevel
|
||||
Architecture: any
|
||||
Suggests: libitpp-dev
|
||||
Depends: libarmadillo2 (= ${binary:Version}), ${misc:Depends}
|
||||
Replaces: libarmadillo-doc (<= 1.1.2-1)
|
||||
Conflicts: libarmadillo-doc
|
||||
Description: streamlined C++ linear algebra library - Headers
|
||||
Armadillo is a streamlined C++ linear algebra library (matrix maths)
|
||||
aiming towards a good balance between speed and ease of use. Integer,
|
||||
floating point and complex numbers are supported, as well as a subset
|
||||
of trigonometric and statistics functions. Optional integration with
|
||||
LAPACK and ATLAS libraries is also provided.
|
||||
.
|
||||
This package has the development libraries and headers for Armadillo.
|
||||
|
||||
Package: libarmadillo2
|
||||
Section: libs
|
||||
Architecture: any
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}
|
||||
Description: streamlined C++ linear algebra library
|
||||
Armadillo is a streamlined C++ linear algebra library (matrix maths)
|
||||
aiming towards a good balance between speed and ease of use. Integer,
|
||||
floating point and complex numbers are supported, as well as a subset
|
||||
of trigonometric and statistics functions. Optional integration with
|
||||
LAPACK and ATLAS libraries is also provided.
|
||||
@@ -1,76 +0,0 @@
|
||||
This package was debianized by Kumar Appaiah <akumar@debian.org> on
|
||||
Wed, 25 Mar 2009 15:02:42 -0500.
|
||||
|
||||
It was downloaded from <http://arma.sourceforge.net>
|
||||
|
||||
Upstream Author:
|
||||
|
||||
Conrad Sanderson <conradsand ! ieee !org> (Change first `!' to `@', second one to `.')
|
||||
|
||||
Contributors:
|
||||
Justin Bedo
|
||||
Ian Cullinan
|
||||
Charles Gretton
|
||||
Oka Kurniawan
|
||||
Adam Piątyszek
|
||||
Ola Rinta-Koski
|
||||
Laurianne Sitbon
|
||||
Yong Kang Wong
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright © 2008 - 2011 NICTA
|
||||
|
||||
This program is licensed under the GNU Lesser General Public License
|
||||
(LGPL), and you may use and redistribute the software under the LGPL
|
||||
version 3, or (at your option) any later version.
|
||||
|
||||
LGPL:
|
||||
This library is free software; you can redistribute it and/or
|
||||
modify it under the terms of the GNU Library General Public
|
||||
License as published by the Free Software Foundation; either
|
||||
version 3 of the License, or (at your option) any later version.
|
||||
|
||||
This library 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
|
||||
Library General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Library General Public
|
||||
License along with this library; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU Library General
|
||||
Public License can be found in `/usr/share/common-licenses/LGPL'.
|
||||
|
||||
Files in build_aux/cmake/Modules:
|
||||
Copyright (c) 2006, Alexander Neundorf, <neundorf@kde.org>
|
||||
Redistribution and use is allowed according to the terms of the BSD license.
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions
|
||||
are met:
|
||||
|
||||
1. Redistributions of source code must retain the copyright
|
||||
notice, this list of conditions and the following disclaimer.
|
||||
2. Redistributions in binary form must reproduce the copyright
|
||||
notice, this list of conditions and the following disclaimer in the
|
||||
documentation and/or other materials provided with the distribution.
|
||||
3. The name of the author may not be used to endorse or promote products
|
||||
derived from this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
||||
IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
||||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
||||
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
||||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
||||
NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
||||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
||||
THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
||||
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
||||
THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
The Debian packaging is © 2009-2011, Kumar Appaiah <akumar@debian.org>
|
||||
and is licensed under the GNU General Public License version 2. On
|
||||
Debian systems, the complete text of the GNU General Public License
|
||||
can be found in `/usr/share/common-licenses/GPL-2'.
|
||||
@@ -1,29 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Borrowed from Raphael Geissert's Debian PHP repack script.
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "$3" ] && [ ! -f "$1" ]; then
|
||||
echo "This script must be run via uscan or by manually specifying the tarball" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
tarball=
|
||||
|
||||
[ -f "$3" ] && tarball="$3"
|
||||
[ -z "$tarball" -a -f "$1" ] && tarball="$1"
|
||||
|
||||
fname="$(basename "$tarball")"
|
||||
tarball="$(readlink -f "$tarball")"
|
||||
|
||||
tdir="$(mktemp -d)"
|
||||
trap '[ ! -d "$tdir" ] || rm -r "$tdir"' EXIT
|
||||
|
||||
zcat "$tarball" | tar --wildcards --delete '*/examples/lib_win32' --delete '*/examples*_win32' --delete '*/docs/*pdf' > "$tdir/${fname/.gz}"
|
||||
#touch -m -r "$tarball" "$tdir/${fname/.gz}"
|
||||
gzip -9 "$tdir/${fname/.gz}"
|
||||
|
||||
mv "$tarball" "$tarball.bkp"
|
||||
tarballdfsg=$(echo $3|sed 's/\.orig\.tar\.gz/+dfsg.orig.tar.gz/')
|
||||
echo Writing $tarballdfsg
|
||||
mv "$tdir/$fname" "$tarballdfsg"
|
||||
@@ -1,12 +0,0 @@
|
||||
Document: armadillo
|
||||
Title: Armadillo Manual
|
||||
Author: Conrad Sanderson
|
||||
Abstract: This manual contains the Armadillo technical documentation
|
||||
which documents the various features and methods provided in
|
||||
the Armadillo library for vector and matrix based mathematical
|
||||
computations.
|
||||
Section: Science/Mathematics
|
||||
|
||||
Format: HTML
|
||||
Index: /usr/share/doc/libarmadillo-dev/index.html
|
||||
Files: /usr/share/doc/libarmadillo-dev/*.html
|
||||
@@ -1 +0,0 @@
|
||||
docs/*
|
||||
@@ -1 +0,0 @@
|
||||
examples/*
|
||||
@@ -1,2 +0,0 @@
|
||||
usr/include/* usr/include
|
||||
usr/lib/lib*.so usr/lib
|
||||
@@ -1 +0,0 @@
|
||||
README.txt
|
||||
@@ -1 +0,0 @@
|
||||
usr/lib/*.so.* usr/lib
|
||||
@@ -1,66 +0,0 @@
|
||||
#!/usr/bin/make -f
|
||||
# -*- makefile -*-
|
||||
|
||||
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
|
||||
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
|
||||
ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE))
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
|
||||
else
|
||||
CROSS= --build $(DEB_BUILD_GNU_TYPE)
|
||||
endif
|
||||
|
||||
config.status: configure
|
||||
dh_testdir
|
||||
./configure
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: config.status
|
||||
dh_testdir
|
||||
cmake -D INSTALL_LIB_DIR=lib -D CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT:BOOL=ON . # specified to install to the debian/tmp directory.
|
||||
$(MAKE)
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp
|
||||
rm -rf debian/doc_gen
|
||||
[ ! -f Makefile ] || $(MAKE) clean
|
||||
rm -f config.guess config.sub Makefile
|
||||
rm -f CMakeCache.txt cmake_install.cmake
|
||||
rm -rf CMakeFiles
|
||||
rm -f install_manifest.txt
|
||||
dh_clean --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean --exclude ./src/include/armadillo_bits/dgemm_proto.hpp.orig
|
||||
dh_installdirs
|
||||
$(MAKE) prefix=$(CURDIR)/debian/tmp/usr install DESTDIR=debian/tmp
|
||||
|
||||
binary-arch: build install
|
||||
dh_testdir -a
|
||||
dh_testroot -a
|
||||
dh_installchangelogs -a
|
||||
dh_installdocs -a
|
||||
dh_installexamples -a
|
||||
dh_install -a --sourcedir=debian/tmp
|
||||
dh_installman -a
|
||||
dh_link -a
|
||||
dh_strip -a
|
||||
dh_compress -a -X.cpp
|
||||
dh_fixperms -a
|
||||
dh_makeshlibs -a
|
||||
dh_installdeb -a
|
||||
dh_shlibdeps -a
|
||||
dh_gencontrol -a
|
||||
dh_md5sums -a
|
||||
dh_builddeb -a
|
||||
|
||||
binary-indep: build install
|
||||
# Currently no arch-independent packages
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-arch binary install
|
||||
@@ -1,6 +0,0 @@
|
||||
version=3
|
||||
#http://sf.net/arma/armadillo-(.*)\.tar\.gz
|
||||
opts=filenamemangle=s/.*armadillo-(.*)\.tar\.gz\/download/armadillo-$1.tar.gz/,\
|
||||
dversionmangle=s/\+dfsg// \
|
||||
http://sourceforge.net/projects/arma/files armadillo-(.*)\.tar\.gz/download debian bash debian/dfsg-repack.sh
|
||||
|
||||
@@ -1,86 +0,0 @@
|
||||
# The generated "Makefile" from "Makefile.cmake" is only usable after
|
||||
# the Armadillo library has been configured and installed by CMake.
|
||||
|
||||
CXX=g++
|
||||
#CXX=g++-4.2
|
||||
## Under MacOS you may have an old compiler as default (e.g. GCC 4.0).
|
||||
## However, GCC 4.2 or later is available and preferable due to better
|
||||
## handling of template code.
|
||||
|
||||
#CXX=CC
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
# flags configured by CMake
|
||||
ifeq (unix,macos)
|
||||
EXTRA_LIB_FLAGS = -framework Accelerate
|
||||
endif
|
||||
|
||||
#EXTRA_LIB_FLAGS = -library=sunperf
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
ifeq (true,true)
|
||||
BOOST_INCLUDE_FLAG = -I /usr/include
|
||||
endif
|
||||
|
||||
|
||||
|
||||
LIB_FLAGS = -larmadillo $(EXTRA_LIB_FLAGS)
|
||||
## NOTE: on Ubuntu and Debian based systems you may need to add
|
||||
## -lgfortran to LIB_FLAGS
|
||||
|
||||
|
||||
|
||||
OPT = -O1
|
||||
## As the Armadillo library uses recursive templates,
|
||||
## compilation times depend on the level of optimisation:
|
||||
##
|
||||
## -O0: quick compilation, but the resulting program will be slow
|
||||
## -O1: produces programs which achieve most of the possible speedup
|
||||
## -O3: produces programs which have almost all possible speedups,
|
||||
## but compilation takes considerably longer
|
||||
|
||||
|
||||
#OPT = -xO4 -xannotate=no
|
||||
## When using the Sun Studio compiler
|
||||
|
||||
|
||||
#EXTRA_OPT = -fwhole-program
|
||||
## Uncomment the above line if you're compiling
|
||||
## all source files into one program in a single hit.
|
||||
|
||||
|
||||
#DEBUG = -DARMA_EXTRA_DEBUG
|
||||
## Uncomment the above line to enable low-level
|
||||
## debugging. Lots of debugging information will
|
||||
## be printed when a compiled program is run.
|
||||
## Please enable this option when reporting bugs.
|
||||
|
||||
|
||||
#FINAL = -DARMA_NO_DEBUG
|
||||
## Uncomment the above line to disable Armadillo's checks.
|
||||
## DANGEROUS! Not recommended unless your code has been
|
||||
## thoroughly tested.
|
||||
|
||||
|
||||
#
|
||||
#
|
||||
#
|
||||
|
||||
CXXFLAGS = $(BOOST_INCLUDE_FLAG) $(DEBUG) $(FINAL) $(OPT) $(EXTRA_OPT)
|
||||
|
||||
all: example1 example2
|
||||
|
||||
example1: example1.cpp
|
||||
$(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS)
|
||||
|
||||
example2: example2.cpp
|
||||
$(CXX) $(CXXFLAGS) -o $@ $< $(LIB_FLAGS)
|
||||
|
||||
|
||||
.PHONY: clean
|
||||
|
||||
clean:
|
||||
rm -f example1 example2
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
// Copyright (C) 2008-2011 NICTA (www.nicta.com.au)
|
||||
// Copyright (C) 2008-2011 Conrad Sanderson
|
||||
//
|
||||
// This file is part of the Armadillo C++ library.
|
||||
// It is provided without any warranty of fitness
|
||||
// for any purpose. You can redistribute this file
|
||||
// and/or modify it under the terms of the GNU
|
||||
// Lesser General Public License (LGPL) as published
|
||||
// by the Free Software Foundation, either version 3
|
||||
// of the License or (at your option) any later version.
|
||||
// (see http://www.opensource.org/licenses for more info)
|
||||
|
||||
|
||||
|
||||
#if !defined(ARMA_USE_LAPACK)
|
||||
#define ARMA_USE_LAPACK
|
||||
//// Uncomment the above line if you have LAPACK or a fast replacement for LAPACK,
|
||||
//// such as Intel's MKL, AMD's ACML, or the Accelerate framework.
|
||||
//// LAPACK is required for matrix decompositions (eg. SVD) and matrix inverse.
|
||||
#endif
|
||||
|
||||
#if !defined(ARMA_USE_BLAS)
|
||||
#define ARMA_USE_BLAS
|
||||
//// Uncomment the above line if you have BLAS or a fast replacement for BLAS,
|
||||
//// such as GotoBLAS, Intel's MKL, AMD's ACML, or the Accelerate framework.
|
||||
//// BLAS is used for matrix multiplication.
|
||||
//// Without BLAS, matrix multiplication will still work, but might be slower.
|
||||
#endif
|
||||
|
||||
// #define ARMA_BLAS_LONG
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries use "long" instead of "int"
|
||||
|
||||
// #define ARMA_BLAS_LONG_LONG
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries use "long long" instead of "int"
|
||||
|
||||
#define ARMA_BLAS_UNDERSCORE
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries have function names with a trailing underscore.
|
||||
//// Conversely, comment it out if the function names don't have a trailing underscore.
|
||||
|
||||
// #define ARMA_BLAS_CAPITALS
|
||||
//// Uncomment the above line if your BLAS and LAPACK libraries have capitalised function names (eg. ACML on 64-bit Windows)
|
||||
|
||||
#if !defined(ARMA_MAT_PREALLOC)
|
||||
#define ARMA_MAT_PREALLOC 16
|
||||
#endif
|
||||
//// This is the number of preallocated elements used by matrices and vectors;
|
||||
//// it must be an integer that is at least 1.
|
||||
//// If you mainly use lots of very small vectors (eg. <= 4 elements),
|
||||
//// change the number to the size of your vectors.
|
||||
|
||||
/* #undef ARMA_USE_ATLAS */
|
||||
#define ARMA_ATLAS_INCLUDE_DIR /
|
||||
//// If you're using ATLAS and the compiler can't find cblas.h and/or clapack.h
|
||||
//// uncomment the above define and specify the appropriate include directory.
|
||||
//// Make sure the directory has a trailing /
|
||||
|
||||
#define ARMA_USE_BOOST
|
||||
#define ARMA_USE_BOOST_DATE
|
||||
|
||||
#define ARMA_HAVE_STD_ISFINITE
|
||||
#define ARMA_HAVE_STD_ISINF
|
||||
#define ARMA_HAVE_STD_ISNAN
|
||||
#define ARMA_HAVE_STD_SNPRINTF
|
||||
|
||||
#define ARMA_HAVE_LOG1P
|
||||
#define ARMA_HAVE_GETTIMEOFDAY
|
||||
|
||||
// #define ARMA_EXTRA_DEBUG
|
||||
// #define ARMA_NO_DEBUG
|
||||
@@ -1,5 +0,0 @@
|
||||
Don't forget to check the upstream packaging files for potential
|
||||
packaging fixes:
|
||||
|
||||
https://github.com/hudson/hudson/tree/master/debian/debian
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
The Debian Package hudson
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Thu, 24 Apr 2008 23:38:55 -0700
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
5
|
||||
@@ -1,13 +0,0 @@
|
||||
Source: hudson
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>, Sterling Peet <sterling.peet@gatech.edu>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.9.1
|
||||
Homepage: https://hudson.dev.java.net/
|
||||
|
||||
Package: hudson
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, daemon, adduser, java-virtual-machine | sun-java6-jre, java2-runtime | sun-java6-jre, psmisc
|
||||
Description: Continuous integration system written in Java
|
||||
Hudson is an extensible continuous engine written in Java.
|
||||
@@ -1,36 +0,0 @@
|
||||
This package was debianized by Kohsuke Kawaguchi <kk@kohsuke.org> on
|
||||
Thu, 24 Apr 2008 23:38:55 -0700.
|
||||
|
||||
It was downloaded from <http://ftp.osuosl.org/pub/hudson/war/>
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
Kohsuke Kawaguchi <kk@kohsuke.org>
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) 2010 Kohsuke Kawaguchi
|
||||
|
||||
License:
|
||||
|
||||
This package 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 2 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 package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2008, Kohsuke Kawaguchi <kk@kohsuke.org> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
usr/bin
|
||||
usr/sbin
|
||||
|
||||
# moved from rules install
|
||||
usr/share/hudson
|
||||
var/lib/hudson
|
||||
|
||||
# Need to create hudson's own directory to track the pid since the daemon is not run as root
|
||||
# and doesn't have permission to write the pid to /var/run (which would be the preferred location).
|
||||
var/run/hudson
|
||||
|
||||
# Store hudson log file in it's own directory since they can become rather large and in the future
|
||||
# rotating logs can be easily added.
|
||||
var/log/hudson
|
||||
@@ -1,53 +0,0 @@
|
||||
# defaults for hudson continuous integration server
|
||||
|
||||
# pulled in from the init script; makes things easier.
|
||||
NAME=hudson
|
||||
|
||||
# location of java
|
||||
JAVA=/usr/bin/java
|
||||
|
||||
# arguments to pass to java
|
||||
#JAVA_ARGS="-Xmx256m"
|
||||
|
||||
PIDFILE=/var/run/hudson/hudson.pid
|
||||
|
||||
# user id to be invoked as (otherwise will run as root; not wise!)
|
||||
HUDSON_USER=hudson
|
||||
|
||||
# location of the hudson war file
|
||||
HUDSON_WAR=/usr/share/hudson/hudson.war
|
||||
|
||||
# hudson home location
|
||||
HUDSON_HOME=/var/lib/hudson
|
||||
|
||||
# set this to false if you don't want Hudson to run by itself
|
||||
# in this set up, you are expected to provide a servlet containr
|
||||
# to host hudson.
|
||||
RUN_STANDALONE=true
|
||||
|
||||
# log location. this may be a syslog facility.priority
|
||||
HUDSON_LOG=/var/log/hudson/$NAME.log
|
||||
#HUDSON_LOG=daemon.info
|
||||
|
||||
# OS LIMITS SETUP
|
||||
# comment this out to observe /etc/security/limits.conf
|
||||
# this is on by default because http://github.com/feniix/hudson/commit/d13c08ea8f5a3fa730ba174305e6429b74853927
|
||||
# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file
|
||||
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
|
||||
MAXOPENFILES=8192
|
||||
|
||||
# port for HTTP connector (default 8080; disable with -1)
|
||||
HTTP_PORT=8080
|
||||
|
||||
# port for AJP connector (disabled by default)
|
||||
AJP_PORT=-1
|
||||
|
||||
# arguments to pass to hudson.
|
||||
# --javahome=$JAVA_HOME
|
||||
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
|
||||
# --httpsPort=$HTTP_PORT
|
||||
# --ajp13Port=$AJP_PORT
|
||||
# --argumentsRealm.passwd.$ADMIN_USER=[password]
|
||||
# --argumentsRealm.$ADMIN_USER=admin
|
||||
# --webroot=~/.hudson/war
|
||||
HUDSON_ARGS="--webroot=/var/run/hudson/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
|
||||
@@ -1,233 +0,0 @@
|
||||
#!/bin/bash
|
||||
# /etc/init.d/hudson
|
||||
# debian-compatible hudson startup script.
|
||||
# Amelia A Lewis <alewis@ibco.com>
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: hudson
|
||||
# Required-Start: $remote_fs $syslog $network
|
||||
# Required-Stop: $remote_fs $syslog $network
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start hudson at boot time
|
||||
# Description: Controls the hudson continuous integration engine.
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
DESC="Hudson Continuous Integration Server"
|
||||
NAME=hudson
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
#DAEMON=$HUDSON_SH
|
||||
DAEMON=/usr/bin/daemon
|
||||
DAEMON_ARGS="--name=$NAME --inherit --env=HUDSON_HOME=$HUDSON_HOME --output=$HUDSON_LOG --pidfile=$PIDFILE"
|
||||
|
||||
SU=/bin/su
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
# Exit if not supposed to run standalone
|
||||
[ "$RUN_STANDALONE" = "false" ] && exit 0
|
||||
|
||||
# load environments
|
||||
if [ -r /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
export LANG LANGUAGE
|
||||
elif [ -r /etc/environment ]; then
|
||||
. /etc/environment
|
||||
export LANG LANGUAGE
|
||||
fi
|
||||
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
. /lib/init/vars.sh
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# Make sure we run as root, since setting the max open files through
|
||||
# ulimit requires root access
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "The $NAME init script can only be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
check_tcp_port() {
|
||||
local service=$1
|
||||
local assigned=$2
|
||||
local default=$3
|
||||
|
||||
if [ -n "$assigned" ]; then
|
||||
port=$assigned
|
||||
else
|
||||
port=$default
|
||||
fi
|
||||
|
||||
count=`netstat --listen --numeric-ports | grep \:$port | grep -c . `
|
||||
|
||||
if [ $count -ne 0 ]; then
|
||||
echo "The selected $service port ($port) seems to be in use by another program "
|
||||
echo "Please select another port to use for $NAME"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# the default location is /var/run/hudson/hudson.pid but the parent directory needs to be created
|
||||
mkdir `dirname $PIDFILE` > /dev/null 2>&1 || true
|
||||
chown $HUDSON_USER `dirname $PIDFILE`
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
$DAEMON $DAEMON_ARGS --running && return 1
|
||||
|
||||
# Verify that the hudson port is not already in use, winstone does not exit
|
||||
# even for BindException
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 1
|
||||
|
||||
# If the var MAXOPENFILES is enabled in /etc/default/hudson then set the max open files to the
|
||||
# proper value
|
||||
if [ -n "$MAXOPENFILES" ]; then
|
||||
[ "$VERBOSE" != no ] && echo Setting up max open files limit to $MAXOPENFILES
|
||||
ulimit -n $MAXOPENFILES
|
||||
fi
|
||||
|
||||
# --user in daemon doesn't prepare environment variables like HOME, USER, LOGNAME or USERNAME,
|
||||
# so we let su do so for us now
|
||||
$SU $HUDSON_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS -jar $HUDSON_WAR $HUDSON_ARGS" || return 2
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Verify that all hudson processes have been shutdown
|
||||
# and if not, then do killall for them
|
||||
#
|
||||
get_running()
|
||||
{
|
||||
return `ps -U $HUDSON_USER --no-headers -f | egrep -e '(java|daemon)' | grep -c . `
|
||||
}
|
||||
|
||||
force_stop()
|
||||
{
|
||||
get_running
|
||||
if [ $? -ne 0 ]; then
|
||||
killall -u $HUDSON_USER java daemon || return 3
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the status of the daemon process
|
||||
get_daemon_status()
|
||||
{
|
||||
$DAEMON $DAEMON_ARGS --running || return 1
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0)
|
||||
$DAEMON $DAEMON_ARGS --stop || return 2
|
||||
# wait for the process to really terminate
|
||||
while true;
|
||||
do
|
||||
sleep 1
|
||||
$DAEMON $DAEMON_ARGS --running || break
|
||||
done
|
||||
;;
|
||||
*)
|
||||
force_stop || return 3
|
||||
;;
|
||||
esac
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting $DESC" "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented then remove the
|
||||
# 'force-reload' alias
|
||||
#
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0) echo "Hudson is running with the pid `cat $PIDFILE`";;
|
||||
*)
|
||||
get_running
|
||||
procs=$?
|
||||
if [ $procs -eq 0 ]; then
|
||||
echo -n "Hudson is not running"
|
||||
if [ -f $PIDFILE ]; then
|
||||
echo ", but the pidfile ($PIDFILE) still exists"
|
||||
else
|
||||
echo
|
||||
fi
|
||||
|
||||
else
|
||||
echo "$procs instances of hudson are running at the moment"
|
||||
echo "but the pidfile $PIDFILE is missing"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -1,2 +0,0 @@
|
||||
hudson.war usr/share/hudson
|
||||
#debian/hudson.list etc/apt/sources.list.d
|
||||
@@ -1 +0,0 @@
|
||||
#deb http://pkg.hudson-labs.org/debian binary/
|
||||
@@ -1,61 +0,0 @@
|
||||
#!/bin/sh
|
||||
# postinst script for hudson
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
# Create hudson user if it doesn't exist.
|
||||
# sometimes tools that users want Hudson to run need a shell,
|
||||
# so use /bin/bash. See HUDSON-4830
|
||||
if ! id hudson > /dev/null 2>&1 ; then
|
||||
adduser --system --home /var/lib/hudson --no-create-home \
|
||||
--ingroup nogroup --disabled-password --shell /bin/bash \
|
||||
hudson
|
||||
fi
|
||||
|
||||
# Fix permissions on runtime directories/files.
|
||||
# change group/owner to hudson:adm - exclude jobs directory. See HUDSON-4047
|
||||
# even if it fails on some files, don't let that interfere with the upgrade process
|
||||
# (that can happen on dangling symlinks, for example.)
|
||||
find /var/lib/hudson -path "*jobs" -prune -o -exec chown hudson:adm {} + || true
|
||||
chown -R hudson:adm /var/run/hudson /var/log/hudson
|
||||
# change mode to 750 - exclude jobs and .ssh directories. See HUDSON-4047
|
||||
find /var/lib/hudson -path "*jobs" -prune -o -path "*.ssh" -prune -o -exec chmod 750 {} + || true
|
||||
chmod -R 750 /var/run/hudson
|
||||
chmod 750 /var/log/hudson
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
# postrm script for hudson
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
# TODO: Remove cached/temp files
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
userdel hudson || true
|
||||
# TODO: remove log files rm -rf /var/log/hudson
|
||||
;;
|
||||
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
#!/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
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
# Add here commands to configure the package.
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
dh_install
|
||||
|
||||
# Add here commands to install the package into debian/hudson.
|
||||
|
||||
# Moved creation of dirs to dirs template to be invoked by dh_installdirs
|
||||
|
||||
# Moved copying of 'upstream' files (hudson.war) to install template to be invoked by dh_install
|
||||
#cp hudson.war $(CURDIR)/debian/hudson/usr/share/hudson/hudson.war
|
||||
|
||||
|
||||
# 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_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_python
|
||||
dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
# Grab the version from the changelog, up to the first -
|
||||
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
|
||||
get-orig-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --download-current-version --destdir=.
|
||||
# Just to be safe
|
||||
rm -rf hudson-$(DEB_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm hudson-$(DEB_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir hudson-$(DEB_UPSTREAM_VERSION)
|
||||
mv hudson-$(DEB_UPSTREAM_VERSION).war hudson-$(DEB_UPSTREAM_VERSION)/hudson.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f hudson_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
|
||||
hudson-$(DEB_UPSTREAM_VERSION)
|
||||
rm -r hudson-$(DEB_UPSTREAM_VERSION)
|
||||
|
||||
get-latest-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --destdir=.
|
||||
# Get new version number
|
||||
|
||||
DEB_NEW_UPSTREAM_VERSION=$(shell ls -1 . | grep hudson- | tail -1 | sed -rne 's/hudson-(.*).war/\1/p')
|
||||
tar-latest-source: get-latest-source
|
||||
# Just to be safe
|
||||
rm -rf hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm hudson-$(DEB_NEW_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
mv hudson-$(DEB_NEW_UPSTREAM_VERSION).war hudson-$(DEB_NEW_UPSTREAM_VERSION)/hudson.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f hudson_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz \
|
||||
hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
rm -r hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
if [ -d ../tarballs ]; then mv hudson_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz ../tarballs; fi
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
@@ -1,7 +0,0 @@
|
||||
version=3
|
||||
|
||||
#opts="filenamemangle=s/.*(\d+\.\d+).*/hudson-$1\.war/" \
|
||||
#http://hudson-ci.org/download/war/ /download/war/(.*)/hudson.war
|
||||
|
||||
opts="downloadurlmangle=s/$/hudson.war/,filenamemangle=s/.*(\d+\.\d+).*/hudson-$1\.war/" \
|
||||
http://ftp.osuosl.org/pub/hudson/war/ (\d+\.\d+)/
|
||||
@@ -1,5 +0,0 @@
|
||||
Don't forget to check the upstream packaging files for potential
|
||||
packaging fixes:
|
||||
|
||||
https://github.com/hudson/hudson/tree/master/debian/debian
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
The Debian Package hudson
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Thu, 24 Apr 2008 23:38:55 -0700
|
||||
File diff suppressed because it is too large
Load Diff
@@ -1 +0,0 @@
|
||||
5
|
||||
@@ -1,13 +0,0 @@
|
||||
Source: hudson
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>, Sterling Peet <sterling.peet@gatech.edu>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.9.1
|
||||
Homepage: https://hudson.dev.java.net/
|
||||
|
||||
Package: hudson
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, daemon, adduser, java-virtual-machine | sun-java6-jre, java2-runtime | sun-java6-jre, psmisc
|
||||
Description: Continuous integration system written in Java
|
||||
Hudson is an extensible continuous engine written in Java.
|
||||
@@ -1,36 +0,0 @@
|
||||
This package was debianized by Kohsuke Kawaguchi <kk@kohsuke.org> on
|
||||
Thu, 24 Apr 2008 23:38:55 -0700.
|
||||
|
||||
It was downloaded from <http://ftp.osuosl.org/pub/hudson/war/>
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
Kohsuke Kawaguchi <kk@kohsuke.org>
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) 2010 Kohsuke Kawaguchi
|
||||
|
||||
License:
|
||||
|
||||
This package 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 2 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 package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2008, Kohsuke Kawaguchi <kk@kohsuke.org> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
@@ -1,14 +0,0 @@
|
||||
usr/bin
|
||||
usr/sbin
|
||||
|
||||
# moved from rules install
|
||||
usr/share/hudson
|
||||
var/lib/hudson
|
||||
|
||||
# Need to create hudson's own directory to track the pid since the daemon is not run as root
|
||||
# and doesn't have permission to write the pid to /var/run (which would be the preferred location).
|
||||
var/run/hudson
|
||||
|
||||
# Store hudson log file in it's own directory since they can become rather large and in the future
|
||||
# rotating logs can be easily added.
|
||||
var/log/hudson
|
||||
@@ -1,53 +0,0 @@
|
||||
# defaults for hudson continuous integration server
|
||||
|
||||
# pulled in from the init script; makes things easier.
|
||||
NAME=hudson
|
||||
|
||||
# location of java
|
||||
JAVA=/usr/bin/java
|
||||
|
||||
# arguments to pass to java
|
||||
#JAVA_ARGS="-Xmx256m"
|
||||
|
||||
PIDFILE=/var/run/hudson/hudson.pid
|
||||
|
||||
# user id to be invoked as (otherwise will run as root; not wise!)
|
||||
HUDSON_USER=hudson
|
||||
|
||||
# location of the hudson war file
|
||||
HUDSON_WAR=/usr/share/hudson/hudson.war
|
||||
|
||||
# hudson home location
|
||||
HUDSON_HOME=/var/lib/hudson
|
||||
|
||||
# set this to false if you don't want Hudson to run by itself
|
||||
# in this set up, you are expected to provide a servlet containr
|
||||
# to host hudson.
|
||||
RUN_STANDALONE=true
|
||||
|
||||
# log location. this may be a syslog facility.priority
|
||||
HUDSON_LOG=/var/log/hudson/$NAME.log
|
||||
#HUDSON_LOG=daemon.info
|
||||
|
||||
# OS LIMITS SETUP
|
||||
# comment this out to observe /etc/security/limits.conf
|
||||
# this is on by default because http://github.com/feniix/hudson/commit/d13c08ea8f5a3fa730ba174305e6429b74853927
|
||||
# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file
|
||||
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
|
||||
MAXOPENFILES=8192
|
||||
|
||||
# port for HTTP connector (default 8080; disable with -1)
|
||||
HTTP_PORT=8080
|
||||
|
||||
# port for AJP connector (disabled by default)
|
||||
AJP_PORT=-1
|
||||
|
||||
# arguments to pass to hudson.
|
||||
# --javahome=$JAVA_HOME
|
||||
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
|
||||
# --httpsPort=$HTTP_PORT
|
||||
# --ajp13Port=$AJP_PORT
|
||||
# --argumentsRealm.passwd.$ADMIN_USER=[password]
|
||||
# --argumentsRealm.$ADMIN_USER=admin
|
||||
# --webroot=~/.hudson/war
|
||||
HUDSON_ARGS="--webroot=/var/run/hudson/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
|
||||
@@ -1,233 +0,0 @@
|
||||
#!/bin/bash
|
||||
# /etc/init.d/hudson
|
||||
# debian-compatible hudson startup script.
|
||||
# Amelia A Lewis <alewis@ibco.com>
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: hudson
|
||||
# Required-Start: $remote_fs $syslog $network
|
||||
# Required-Stop: $remote_fs $syslog $network
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start hudson at boot time
|
||||
# Description: Controls the hudson continuous integration engine.
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
DESC="Hudson Continuous Integration Server"
|
||||
NAME=hudson
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
#DAEMON=$HUDSON_SH
|
||||
DAEMON=/usr/bin/daemon
|
||||
DAEMON_ARGS="--name=$NAME --inherit --env=HUDSON_HOME=$HUDSON_HOME --output=$HUDSON_LOG --pidfile=$PIDFILE"
|
||||
|
||||
SU=/bin/su
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
# Exit if not supposed to run standalone
|
||||
[ "$RUN_STANDALONE" = "false" ] && exit 0
|
||||
|
||||
# load environments
|
||||
if [ -r /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
export LANG LANGUAGE
|
||||
elif [ -r /etc/environment ]; then
|
||||
. /etc/environment
|
||||
export LANG LANGUAGE
|
||||
fi
|
||||
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
. /lib/init/vars.sh
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# Make sure we run as root, since setting the max open files through
|
||||
# ulimit requires root access
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "The $NAME init script can only be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
check_tcp_port() {
|
||||
local service=$1
|
||||
local assigned=$2
|
||||
local default=$3
|
||||
|
||||
if [ -n "$assigned" ]; then
|
||||
port=$assigned
|
||||
else
|
||||
port=$default
|
||||
fi
|
||||
|
||||
count=`netstat --listen --numeric-ports | grep \:$port | grep -c . `
|
||||
|
||||
if [ $count -ne 0 ]; then
|
||||
echo "The selected $service port ($port) seems to be in use by another program "
|
||||
echo "Please select another port to use for $NAME"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# the default location is /var/run/hudson/hudson.pid but the parent directory needs to be created
|
||||
mkdir `dirname $PIDFILE` > /dev/null 2>&1 || true
|
||||
chown $HUDSON_USER `dirname $PIDFILE`
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
$DAEMON $DAEMON_ARGS --running && return 1
|
||||
|
||||
# Verify that the hudson port is not already in use, winstone does not exit
|
||||
# even for BindException
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 1
|
||||
|
||||
# If the var MAXOPENFILES is enabled in /etc/default/hudson then set the max open files to the
|
||||
# proper value
|
||||
if [ -n "$MAXOPENFILES" ]; then
|
||||
[ "$VERBOSE" != no ] && echo Setting up max open files limit to $MAXOPENFILES
|
||||
ulimit -n $MAXOPENFILES
|
||||
fi
|
||||
|
||||
# --user in daemon doesn't prepare environment variables like HOME, USER, LOGNAME or USERNAME,
|
||||
# so we let su do so for us now
|
||||
$SU $HUDSON_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS -jar $HUDSON_WAR $HUDSON_ARGS" || return 2
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Verify that all hudson processes have been shutdown
|
||||
# and if not, then do killall for them
|
||||
#
|
||||
get_running()
|
||||
{
|
||||
return `ps -U $HUDSON_USER --no-headers -f | egrep -e '(java|daemon)' | grep -c . `
|
||||
}
|
||||
|
||||
force_stop()
|
||||
{
|
||||
get_running
|
||||
if [ $? -ne 0 ]; then
|
||||
killall -u $HUDSON_USER java daemon || return 3
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the status of the daemon process
|
||||
get_daemon_status()
|
||||
{
|
||||
$DAEMON $DAEMON_ARGS --running || return 1
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0)
|
||||
$DAEMON $DAEMON_ARGS --stop || return 2
|
||||
# wait for the process to really terminate
|
||||
while true;
|
||||
do
|
||||
sleep 1
|
||||
$DAEMON $DAEMON_ARGS --running || break
|
||||
done
|
||||
;;
|
||||
*)
|
||||
force_stop || return 3
|
||||
;;
|
||||
esac
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting $DESC" "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented then remove the
|
||||
# 'force-reload' alias
|
||||
#
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0) echo "Hudson is running with the pid `cat $PIDFILE`";;
|
||||
*)
|
||||
get_running
|
||||
procs=$?
|
||||
if [ $procs -eq 0 ]; then
|
||||
echo -n "Hudson is not running"
|
||||
if [ -f $PIDFILE ]; then
|
||||
echo ", but the pidfile ($PIDFILE) still exists"
|
||||
else
|
||||
echo
|
||||
fi
|
||||
|
||||
else
|
||||
echo "$procs instances of hudson are running at the moment"
|
||||
echo "but the pidfile $PIDFILE is missing"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -1,2 +0,0 @@
|
||||
hudson.war usr/share/hudson
|
||||
#debian/hudson.list etc/apt/sources.list.d
|
||||
@@ -1 +0,0 @@
|
||||
#deb http://pkg.hudson-labs.org/debian binary/
|
||||
@@ -1,61 +0,0 @@
|
||||
#!/bin/sh
|
||||
# postinst script for hudson
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
# Create hudson user if it doesn't exist.
|
||||
# sometimes tools that users want Hudson to run need a shell,
|
||||
# so use /bin/bash. See HUDSON-4830
|
||||
if ! id hudson > /dev/null 2>&1 ; then
|
||||
adduser --system --home /var/lib/hudson --no-create-home \
|
||||
--ingroup nogroup --disabled-password --shell /bin/bash \
|
||||
hudson
|
||||
fi
|
||||
|
||||
# Fix permissions on runtime directories/files.
|
||||
# change group/owner to hudson:adm - exclude jobs directory. See HUDSON-4047
|
||||
# even if it fails on some files, don't let that interfere with the upgrade process
|
||||
# (that can happen on dangling symlinks, for example.)
|
||||
find /var/lib/hudson -path "*jobs" -prune -o -exec chown hudson:adm {} + || true
|
||||
chown -R hudson:adm /var/run/hudson /var/log/hudson
|
||||
# change mode to 750 - exclude jobs and .ssh directories. See HUDSON-4047
|
||||
find /var/lib/hudson -path "*jobs" -prune -o -path "*.ssh" -prune -o -exec chmod 750 {} + || true
|
||||
chmod -R 750 /var/run/hudson
|
||||
chmod 750 /var/log/hudson
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@@ -1,45 +0,0 @@
|
||||
#!/bin/sh
|
||||
# postrm script for hudson
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postrm> `remove'
|
||||
# * <postrm> `purge'
|
||||
# * <old-postrm> `upgrade' <new-version>
|
||||
# * <new-postrm> `failed-upgrade' <old-version>
|
||||
# * <new-postrm> `abort-install'
|
||||
# * <new-postrm> `abort-install' <old-version>
|
||||
# * <new-postrm> `abort-upgrade' <old-version>
|
||||
# * <disappearer's-postrm> `disappear' <overwriter>
|
||||
# <overwriter-version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
# TODO: Remove cached/temp files
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
userdel hudson || true
|
||||
# TODO: remove log files rm -rf /var/log/hudson
|
||||
;;
|
||||
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@@ -1,126 +0,0 @@
|
||||
#!/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
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
# Add here commands to configure the package.
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
dh_install
|
||||
|
||||
# Add here commands to install the package into debian/hudson.
|
||||
|
||||
# Moved creation of dirs to dirs template to be invoked by dh_installdirs
|
||||
|
||||
# Moved copying of 'upstream' files (hudson.war) to install template to be invoked by dh_install
|
||||
#cp hudson.war $(CURDIR)/debian/hudson/usr/share/hudson/hudson.war
|
||||
|
||||
|
||||
# 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_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
# dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_python
|
||||
dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
# Grab the version from the changelog, up to the first -
|
||||
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
|
||||
get-orig-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --download-current-version --destdir=.
|
||||
# Just to be safe
|
||||
rm -rf hudson-$(DEB_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm hudson-$(DEB_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir hudson-$(DEB_UPSTREAM_VERSION)
|
||||
mv hudson-$(DEB_UPSTREAM_VERSION).war hudson-$(DEB_UPSTREAM_VERSION)/hudson.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f hudson_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
|
||||
hudson-$(DEB_UPSTREAM_VERSION)
|
||||
rm -r hudson-$(DEB_UPSTREAM_VERSION)
|
||||
|
||||
get-latest-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --destdir=.
|
||||
# Get new version number
|
||||
|
||||
DEB_NEW_UPSTREAM_VERSION=$(shell ls -1 . | grep hudson- | tail -1 | sed -rne 's/hudson-(.*).war/\1/p')
|
||||
tar-latest-source: get-latest-source
|
||||
# Just to be safe
|
||||
rm -rf hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm hudson-$(DEB_NEW_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
mv hudson-$(DEB_NEW_UPSTREAM_VERSION).war hudson-$(DEB_NEW_UPSTREAM_VERSION)/hudson.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f hudson_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz \
|
||||
hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
rm -r hudson-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
if [ -d ../tarballs ]; then mv hudson_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz ../tarballs; fi
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
@@ -1,7 +0,0 @@
|
||||
version=3
|
||||
|
||||
#opts="filenamemangle=s/.*(\d+\.\d+).*/hudson-$1\.war/" \
|
||||
#http://hudson-ci.org/download/war/ /download/war/(.*)/hudson.war
|
||||
|
||||
opts="downloadurlmangle=s/$/hudson.war/,filenamemangle=s/.*(\d+\.\d+).*/hudson-$1\.war/" \
|
||||
http://ftp.osuosl.org/pub/hudson/war/ (\d+\.\d+)/
|
||||
@@ -1,6 +0,0 @@
|
||||
The Debian Package jenkins
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Thu, 24 Apr 2008 23:38:55 -0700
|
||||
@@ -1,12 +0,0 @@
|
||||
jenkins (1.417-1) UNRELEASED; urgency=low
|
||||
|
||||
* New upstream release
|
||||
|
||||
-- Sterling Peet <sterling.peet@gatech.edu> Mon, 20 Jun 2011 17:05:56 -0400
|
||||
|
||||
jenkins (1.415-1) natty; urgency=low
|
||||
|
||||
* Fork from jenkins-ci.org packaging, remove jenkins.list file
|
||||
* Switch to non-Debian-native type packaging, as we do not maintain jenkins
|
||||
|
||||
-- Sterling Peet <sterling.peet@gatech.edu> Wed, 15 Jun 2011 00:48:01 -0400
|
||||
@@ -1 +0,0 @@
|
||||
5
|
||||
@@ -1,15 +0,0 @@
|
||||
Source: jenkins
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Maintainer: Sterling Peet <sterling.peet@gatech.edu>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.9.1
|
||||
Homepage: https://jenkins-ci.org/
|
||||
|
||||
Package: jenkins
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, daemon, adduser, psmisc, java2-runtime
|
||||
Conflicts: hudson
|
||||
Replaces: hudson
|
||||
Description: Continuous integration system written in Java
|
||||
Jenkins is an extensible continuous engine written in Java.
|
||||
@@ -1,36 +0,0 @@
|
||||
This package was debianized by Kohsuke Kawaguchi <kk@kohsuke.org> on
|
||||
Thu, 24 Apr 2008 23:38:55 -0700.
|
||||
|
||||
It was downloaded from <http://ftp.osuosl.org/pub/jenkins/war/>
|
||||
|
||||
Upstream Author(s):
|
||||
|
||||
Kohsuke Kawaguchi <kk@kohsuke.org>
|
||||
|
||||
Copyright:
|
||||
|
||||
Copyright (C) 2010 Kohsuke Kawaguchi
|
||||
|
||||
License:
|
||||
|
||||
This package 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 2 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 package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2008, Kohsuke Kawaguchi <kk@kohsuke.org> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
# moved from rules install
|
||||
usr/share/jenkins
|
||||
|
||||
# this is where JENKINS_HOME is stored, so let's leave it as is for now
|
||||
var/lib/jenkins
|
||||
|
||||
# Need to create jenkins's own directory to track the pid since the daemon is not run as root
|
||||
# and doesn't have permission to write the pid to /var/run (which would be the preferred location).
|
||||
var/run/jenkins
|
||||
|
||||
# Store jenkins log file in it's own directory since they can become rather large and in the future
|
||||
# rotating logs can be easily added.
|
||||
var/log/jenkins
|
||||
@@ -1,53 +0,0 @@
|
||||
# defaults for jenkins continuous integration server
|
||||
|
||||
# pulled in from the init script; makes things easier.
|
||||
NAME=jenkins
|
||||
|
||||
# location of java
|
||||
JAVA=/usr/bin/java
|
||||
|
||||
# arguments to pass to java
|
||||
#JAVA_ARGS="-Xmx256m"
|
||||
|
||||
PIDFILE=/var/run/jenkins/jenkins.pid
|
||||
|
||||
# user id to be invoked as (otherwise will run as root; not wise!)
|
||||
JENKINS_USER=jenkins
|
||||
|
||||
# location of the jenkins war file
|
||||
JENKINS_WAR=/usr/share/jenkins/jenkins.war
|
||||
|
||||
# jenkins home location
|
||||
JENKINS_HOME=/var/lib/jenkins
|
||||
|
||||
# set this to false if you don't want Hudson to run by itself
|
||||
# in this set up, you are expected to provide a servlet container
|
||||
# to host jenkins.
|
||||
RUN_STANDALONE=true
|
||||
|
||||
# log location. this may be a syslog facility.priority
|
||||
JENKINS_LOG=/var/log/jenkins/$NAME.log
|
||||
#HUDSON_LOG=daemon.info
|
||||
|
||||
# OS LIMITS SETUP
|
||||
# comment this out to observe /etc/security/limits.conf
|
||||
# this is on by default because http://github.com/jenkinsci/jenkins/commit/2fb288474e980d0e7ff9c4a3b768874835a3e92e
|
||||
# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file
|
||||
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
|
||||
MAXOPENFILES=8192
|
||||
|
||||
# port for HTTP connector (default 8080; disable with -1)
|
||||
HTTP_PORT=8080
|
||||
|
||||
# port for AJP connector (disabled by default)
|
||||
AJP_PORT=-1
|
||||
|
||||
# arguments to pass to jenkins.
|
||||
# --javahome=$JAVA_HOME
|
||||
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
|
||||
# --httpsPort=$HTTP_PORT
|
||||
# --ajp13Port=$AJP_PORT
|
||||
# --argumentsRealm.passwd.$ADMIN_USER=[password]
|
||||
# --argumentsRealm.$ADMIN_USER=admin
|
||||
# --webroot=~/.jenkins/war
|
||||
JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
|
||||
@@ -1,235 +0,0 @@
|
||||
#!/bin/bash
|
||||
# /etc/init.d/jenkins
|
||||
# debian-compatible jenkins startup script.
|
||||
# Amelia A Lewis <alewis@ibco.com>
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: jenkins
|
||||
# Required-Start: $remote_fs $syslog $network
|
||||
# Required-Stop: $remote_fs $syslog $network
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start jenkins at boot time
|
||||
# Description: Controls the jenkins continuous integration engine.
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
DESC="Jenkins Continuous Integration Server"
|
||||
NAME=jenkins
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
#DAEMON=$JENKINS_SH
|
||||
DAEMON=/usr/bin/daemon
|
||||
DAEMON_ARGS="--name=$NAME --inherit --env=JENKINS_HOME=$JENKINS_HOME --output=$JENKINS_LOG --pidfile=$PIDFILE"
|
||||
|
||||
SU=/bin/su
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
# Exit if not supposed to run standalone
|
||||
[ "$RUN_STANDALONE" = "false" ] && exit 0
|
||||
|
||||
# load environments
|
||||
if [ -r /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
export LANG LANGUAGE
|
||||
elif [ -r /etc/environment ]; then
|
||||
. /etc/environment
|
||||
export LANG LANGUAGE
|
||||
fi
|
||||
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
. /lib/init/vars.sh
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# Make sure we run as root, since setting the max open files through
|
||||
# ulimit requires root access
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "The $NAME init script can only be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
check_tcp_port() {
|
||||
local service=$1
|
||||
local assigned=$2
|
||||
local default=$3
|
||||
|
||||
if [ -n "$assigned" ]; then
|
||||
port=$assigned
|
||||
else
|
||||
port=$default
|
||||
fi
|
||||
|
||||
count=`netstat --listen --numeric-ports | grep \:$port[[:space:]] | grep -c . `
|
||||
|
||||
if [ $count -ne 0 ]; then
|
||||
echo "The selected $service port ($port) seems to be in use by another program "
|
||||
echo "Please select another port to use for $NAME"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# the default location is /var/run/jenkins/jenkins.pid but the parent directory needs to be created
|
||||
mkdir `dirname $PIDFILE` > /dev/null 2>&1 || true
|
||||
chown $JENKINS_USER `dirname $PIDFILE`
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
$DAEMON $DAEMON_ARGS --running && return 1
|
||||
|
||||
# Verify that the jenkins port is not already in use, winstone does not exit
|
||||
# even for BindException
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 1
|
||||
|
||||
# If the var MAXOPENFILES is enabled in /etc/default/jenkins then set the max open files to the
|
||||
# proper value
|
||||
if [ -n "$MAXOPENFILES" ]; then
|
||||
[ "$VERBOSE" != no ] && echo Setting up max open files limit to $MAXOPENFILES
|
||||
ulimit -n $MAXOPENFILES
|
||||
fi
|
||||
|
||||
# --user in daemon doesn't prepare environment variables like HOME, USER, LOGNAME or USERNAME,
|
||||
# so we let su do so for us now
|
||||
$SU -l $JENKINS_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS -jar $JENKINS_WAR $JENKINS_ARGS" || return 2
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Verify that all jenkins processes have been shutdown
|
||||
# and if not, then do killall for them
|
||||
#
|
||||
get_running()
|
||||
{
|
||||
return `ps -U $JENKINS_USER --no-headers -f | egrep -e '(java|daemon)' | grep -c . `
|
||||
}
|
||||
|
||||
force_stop()
|
||||
{
|
||||
get_running
|
||||
if [ $? -ne 0 ]; then
|
||||
killall -u $JENKINS_USER java daemon || return 3
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the status of the daemon process
|
||||
get_daemon_status()
|
||||
{
|
||||
$DAEMON $DAEMON_ARGS --running || return 1
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0)
|
||||
$DAEMON $DAEMON_ARGS --stop || return 2
|
||||
# wait for the process to really terminate
|
||||
for n in 1 2 3 4 5; do
|
||||
sleep 1
|
||||
$DAEMON $DAEMON_ARGS --running || break
|
||||
done
|
||||
if get_daemon_status; then
|
||||
force_stop || return 3
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
force_stop || return 3
|
||||
;;
|
||||
esac
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting $DESC" "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented then remove the
|
||||
# 'force-reload' alias
|
||||
#
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0) echo "$DESC is running with the pid `cat $PIDFILE`";;
|
||||
*)
|
||||
get_running
|
||||
procs=$?
|
||||
if [ $procs -eq 0 ]; then
|
||||
echo -n "$DESC is not running"
|
||||
if [ -f $PIDFILE ]; then
|
||||
echo ", but the pidfile ($PIDFILE) still exists"
|
||||
else
|
||||
echo
|
||||
fi
|
||||
|
||||
else
|
||||
echo "$procs instances of jenkins are running at the moment"
|
||||
echo "but the pidfile $PIDFILE is missing"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -1,2 +0,0 @@
|
||||
jenkins.war usr/share/jenkins
|
||||
#debian/jenkins.list etc/apt/sources.list.d
|
||||
@@ -1,9 +0,0 @@
|
||||
/var/log/jenkins/jenkins.log {
|
||||
weekly
|
||||
copytruncate
|
||||
missingok
|
||||
rotate 52
|
||||
compress
|
||||
delaycompress
|
||||
notifempty
|
||||
}
|
||||
@@ -1,69 +0,0 @@
|
||||
#!/bin/sh
|
||||
# postinst script for jenkins
|
||||
#
|
||||
# see: dh_installdeb(1)
|
||||
|
||||
set -e
|
||||
|
||||
# summary of how this script can be called:
|
||||
# * <postinst> `configure' <most-recently-configured-version>
|
||||
# * <old-postinst> `abort-upgrade' <new version>
|
||||
# * <conflictor's-postinst> `abort-remove' `in-favour' <package>
|
||||
# <new-version>
|
||||
# * <postinst> `abort-remove'
|
||||
# * <deconfigured's-postinst> `abort-deconfigure' `in-favour'
|
||||
# <failed-install-package> <version> `removing'
|
||||
# <conflicting-package> <version>
|
||||
# for details, see http://www.debian.org/doc/debian-policy/ or
|
||||
# the debian-policy package
|
||||
|
||||
|
||||
case "$1" in
|
||||
configure)
|
||||
|
||||
# Create jenkins user if it doesn't exist.
|
||||
# sometimes tools that users want Jenkins to run need a shell,
|
||||
# so use /bin/bash. See JENKINS-4830
|
||||
if ! id jenkins > /dev/null 2>&1 ; then
|
||||
adduser --system --home /var/lib/jenkins --no-create-home \
|
||||
--ingroup nogroup --disabled-password --shell /bin/bash \
|
||||
jenkins
|
||||
fi
|
||||
|
||||
# If we have an old hudson install, rename it to jenkins
|
||||
if test -d /var/lib/hudson -a \! \( -e /var/lib/hudson/.for-jenkins \) ; then
|
||||
# leave a marker to indicate this came from Hudson.
|
||||
# could be useful down the road
|
||||
# This also ensures that the .??* wildcard matches something
|
||||
touch /var/lib/hudson/.from-hudson
|
||||
mv -f /var/lib/hudson/* /var/lib/hudson/.??* /var/lib/jenkins
|
||||
rmdir /var/lib/hudson
|
||||
find /var/lib/jenkins -user hudson -exec chown jenkins {} + || true
|
||||
fi
|
||||
|
||||
# directories needed for jenkins
|
||||
chown jenkins:adm /var/lib/jenkins /var/log/jenkins
|
||||
chmod 750 /var/lib/jenkins /var/log/jenkins
|
||||
|
||||
# make sure jenkins can delete everything in /var/run/jenkins to re-explode war
|
||||
chown -R jenkins:adm /var/run/jenkins
|
||||
chmod -R 750 /var/run/jenkins
|
||||
;;
|
||||
|
||||
abort-upgrade|abort-remove|abort-deconfigure)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postinst called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
# dh_installdeb will replace this with shell code automatically
|
||||
# generated by other debhelper scripts.
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
case "$1" in
|
||||
purge)
|
||||
userdel jenkins || true
|
||||
rm -rf /var/lib/jenkins /var/log/jenkins /var/run/jenkins
|
||||
;;
|
||||
|
||||
remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear)
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "postrm called with unknown argument \`$1'" >&2
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
|
||||
#DEBHELPER#
|
||||
|
||||
exit 0
|
||||
@@ -1,127 +0,0 @@
|
||||
#!/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
|
||||
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
# Add here commands to configure the package.
|
||||
|
||||
touch configure-stamp
|
||||
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
|
||||
# Add here commands to compile the package.
|
||||
|
||||
touch $@
|
||||
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
|
||||
# Add here commands to clean up after the build process.
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
dh_install
|
||||
|
||||
# Add here commands to install the package into debian/jenkins.
|
||||
|
||||
# Moved creation of dirs to dirs template to be invoked by dh_installdirs
|
||||
|
||||
# Moved copying of 'upstream' files (jenkins.war) to install template to be invoked by dh_install
|
||||
#cp jenkins.war $(CURDIR)/debian/jenkins/usr/share/jenkins/jenkins.war
|
||||
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
dh_installexamples
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
# dh_python
|
||||
dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
dh_installman
|
||||
dh_link
|
||||
dh_strip
|
||||
dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
# Java war files are cross platform, nothing to do here!
|
||||
|
||||
# Grab the version from the changelog, up to the first -
|
||||
DEB_UPSTREAM_VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
|
||||
get-orig-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --download-current-version --destdir=.
|
||||
# Just to be safe
|
||||
rm -rf jenkins-$(DEB_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm jenkins-$(DEB_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir jenkins-$(DEB_UPSTREAM_VERSION)
|
||||
mv jenkins-$(DEB_UPSTREAM_VERSION).war jenkins-$(DEB_UPSTREAM_VERSION)/jenkins.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f jenkins_$(DEB_UPSTREAM_VERSION).orig.tar.gz \
|
||||
jenkins-$(DEB_UPSTREAM_VERSION)
|
||||
rm -r jenkins-$(DEB_UPSTREAM_VERSION)
|
||||
if [ -d ../tarballs ]; then mv jenkins_$(DEB_UPSTREAM_VERSION).orig.tar.gz ../tarballs; fi
|
||||
|
||||
get-latest-source:
|
||||
# Uscan can grab upstream source war
|
||||
uscan --noconf --force-download --verbose --destdir=.
|
||||
# Get new version number
|
||||
|
||||
DEB_NEW_UPSTREAM_VERSION=$(shell ls -1 . | grep jenkins- | tail -1 | sed -rne 's/jenkins-(.*).war/\1/p')
|
||||
tar-latest-source: get-latest-source
|
||||
# Just to be safe
|
||||
rm -rf jenkins-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
# Unpack
|
||||
# rm jenkins-$(DEB_NEW_UPSTREAM_VERSION).zip
|
||||
# NOTE: I am not using the .orig folder convention for this internal repackaging
|
||||
mkdir jenkins-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
mv jenkins-$(DEB_NEW_UPSTREAM_VERSION).war jenkins-$(DEB_NEW_UPSTREAM_VERSION)/jenkins.war
|
||||
GZIP=--best tar -cz --owner root --group root --mode a+rX \
|
||||
-f jenkins_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz \
|
||||
jenkins-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
rm -r jenkins-$(DEB_NEW_UPSTREAM_VERSION)
|
||||
if [ -d ../tarballs ]; then mv jenkins_$(DEB_NEW_UPSTREAM_VERSION).orig.tar.gz ../tarballs; fi
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
@@ -1,38 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Grab the jenkins-XXX.war file from uscan, tar and compress it into the appropriately
|
||||
# formatted jenkins_XXX.orig.tar.gz archive
|
||||
#
|
||||
# Copyright 2011 Sterling Peet <sterling.peet@gatech.edu>
|
||||
|
||||
set -e
|
||||
|
||||
if [ ! -f "$3" ] && [ ! -f "$1" ]; then
|
||||
echo "This script must be run via uscan or by manually specifying the war file" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
WAR=
|
||||
|
||||
[ -f "$3" ] && WAR="$3"
|
||||
[ -z "$WAR" -a -f "$1" ] && WAR="$1"
|
||||
|
||||
WAR_FILENAME=$(basename $WAR)
|
||||
WAR_VERSION=$2
|
||||
WAR_DIR=$(echo $WAR | sed -rne 's/\/jenkins-.*\.war//p')
|
||||
|
||||
TDIR="$(mktemp -d)"
|
||||
trap '[ ! -d "$TDIR" ] || rm -r "$TDIR"' EXIT
|
||||
|
||||
mkdir -p $TDIR/jenkins-$WAR_VERSION
|
||||
cp $WAR $TDIR/jenkins-$WAR_VERSION/jenkins.war
|
||||
|
||||
echo "Tarring and compressing $WAR"
|
||||
tar -C $TDIR -cz --owner root --group root --mode a+rX \
|
||||
-f $WAR_DIR/jenkins_$WAR_VERSION.orig.tar.gz \
|
||||
jenkins-$WAR_VERSION
|
||||
|
||||
echo "Archive $WAR_DIR/jenkins_$WAR_VERSION.orig.tar.gz created"
|
||||
|
||||
rm -rf $TDIR
|
||||
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
version=3
|
||||
|
||||
opts="downloadurlmangle=s/$/jenkins.war/,filenamemangle=s/.*(\d+\.\d+).*/jenkins-$1\.war/" \
|
||||
http://ftp.osuosl.org/pub/jenkins/war/ (\d+\.\d+)/ debian bash debian/war-pack.sh
|
||||
@@ -1,6 +0,0 @@
|
||||
The Debian Package jenkins
|
||||
----------------------------
|
||||
|
||||
Comments regarding the Package
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Thu, 24 Apr 2008 23:38:55 -0700
|
||||
@@ -1,126 +0,0 @@
|
||||
jenkins (1.416) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Fri, 17 Jun 2011 23:12:29 -0700
|
||||
|
||||
jenkins (1.415) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 13 Jun 2011 09:15:04 -0700
|
||||
|
||||
jenkins (1.414) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sat, 04 Jun 2011 10:34:39 -0700
|
||||
|
||||
jenkins (1.413) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 22 May 2011 22:03:39 -0700
|
||||
|
||||
jenkins (1.412) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 16 May 2011 09:54:33 -0700
|
||||
|
||||
jenkins (1.411) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 09 May 2011 09:32:57 -0700
|
||||
|
||||
jenkins (1.410) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 01 May 2011 15:12:34 -0700
|
||||
|
||||
jenkins (1.409) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 25 Apr 2011 12:18:18 -0700
|
||||
|
||||
jenkins (1.408) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 18 Apr 2011 21:59:40 -0700
|
||||
|
||||
jenkins (1.407) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Fri, 15 Apr 2011 20:08:33 -0700
|
||||
|
||||
jenkins (1.406) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 11 Apr 2011 09:21:43 -0700
|
||||
|
||||
jenkins (1.405) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Mon, 04 Apr 2011 09:49:03 -0700
|
||||
|
||||
jenkins (1.404) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 27 Mar 2011 21:05:37 -0700
|
||||
|
||||
jenkins (1.403) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 20 Mar 2011 23:34:50 -0700
|
||||
|
||||
jenkins (1.401) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 13 Mar 2011 20:56:10 -0700
|
||||
|
||||
jenkins (1.400) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 06 Mar 2011 22:29:43 -0800
|
||||
|
||||
jenkins (1.399) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 27 Feb 2011 19:45:40 -0800
|
||||
|
||||
jenkins (1.398) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sun, 20 Feb 2011 20:01:53 -0800
|
||||
|
||||
jenkins (1.397) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Sat, 12 Feb 2011 07:57:47 -0800
|
||||
|
||||
jenkins (1.396) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Wed, 02 Feb 2011 11:50:36 -0800
|
||||
|
||||
jenkins (1.395) unstable; urgency=low
|
||||
|
||||
* See http://jenkins-ci.org/changelog for more details.
|
||||
|
||||
-- Kohsuke Kawaguchi <kk@kohsuke.org> Fri, 21 Jan 2011 23:33:06 -0800
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
5
|
||||
@@ -1,15 +0,0 @@
|
||||
Source: jenkins
|
||||
Section: devel
|
||||
Priority: extra
|
||||
Maintainer: Kohsuke Kawaguchi <kk@kohsuke.org>
|
||||
Build-Depends: debhelper (>= 5)
|
||||
Standards-Version: 3.7.2
|
||||
Homepage: https://jenkins-ci.org/
|
||||
|
||||
Package: jenkins
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, daemon, adduser, psmisc, java2-runtime
|
||||
Conflicts: hudson
|
||||
Replaces: hudson
|
||||
Description: Continuous integration system written in Java
|
||||
Jenkins is an extensible continuous engine written in Java.
|
||||
@@ -1,40 +0,0 @@
|
||||
This package was debianized by Kohsuke Kawaguchi <kk@kohsuke.org> on
|
||||
Thu, 24 Apr 2008 23:38:55 -0700.
|
||||
|
||||
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 Name OfAuthor>
|
||||
<likewise for another author>
|
||||
|
||||
License:
|
||||
|
||||
This package 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 2 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 package; if not, write to the Free Software
|
||||
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
On Debian systems, the complete text of the GNU General
|
||||
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||
|
||||
The Debian packaging is (C) 2008, Kohsuke Kawaguchi <kk@kohsuke.org> and
|
||||
is licensed under the GPL, see above.
|
||||
|
||||
|
||||
# Please also look if there are files or directories which have a
|
||||
# different copyright/license attached and list them here.
|
||||
@@ -1,13 +0,0 @@
|
||||
# moved from rules install
|
||||
usr/share/jenkins
|
||||
|
||||
# this is where JENKINS_HOME is stored, so let's leave it as is for now
|
||||
var/lib/jenkins
|
||||
|
||||
# Need to create jenkins's own directory to track the pid since the daemon is not run as root
|
||||
# and doesn't have permission to write the pid to /var/run (which would be the preferred location).
|
||||
var/run/jenkins
|
||||
|
||||
# Store jenkins log file in it's own directory since they can become rather large and in the future
|
||||
# rotating logs can be easily added.
|
||||
var/log/jenkins
|
||||
@@ -1,53 +0,0 @@
|
||||
# defaults for jenkins continuous integration server
|
||||
|
||||
# pulled in from the init script; makes things easier.
|
||||
NAME=jenkins
|
||||
|
||||
# location of java
|
||||
JAVA=/usr/bin/java
|
||||
|
||||
# arguments to pass to java
|
||||
#JAVA_ARGS="-Xmx256m"
|
||||
|
||||
PIDFILE=/var/run/jenkins/jenkins.pid
|
||||
|
||||
# user id to be invoked as (otherwise will run as root; not wise!)
|
||||
JENKINS_USER=jenkins
|
||||
|
||||
# location of the jenkins war file
|
||||
JENKINS_WAR=/usr/share/jenkins/jenkins.war
|
||||
|
||||
# jenkins home location
|
||||
JENKINS_HOME=/var/lib/jenkins
|
||||
|
||||
# set this to false if you don't want Hudson to run by itself
|
||||
# in this set up, you are expected to provide a servlet container
|
||||
# to host jenkins.
|
||||
RUN_STANDALONE=true
|
||||
|
||||
# log location. this may be a syslog facility.priority
|
||||
JENKINS_LOG=/var/log/jenkins/$NAME.log
|
||||
#HUDSON_LOG=daemon.info
|
||||
|
||||
# OS LIMITS SETUP
|
||||
# comment this out to observe /etc/security/limits.conf
|
||||
# this is on by default because http://github.com/jenkinsci/jenkins/commit/2fb288474e980d0e7ff9c4a3b768874835a3e92e
|
||||
# reported that Ubuntu's PAM configuration doesn't include pam_limits.so, and as a result the # of file
|
||||
# descriptors are forced to 1024 regardless of /etc/security/limits.conf
|
||||
MAXOPENFILES=8192
|
||||
|
||||
# port for HTTP connector (default 8080; disable with -1)
|
||||
HTTP_PORT=8080
|
||||
|
||||
# port for AJP connector (disabled by default)
|
||||
AJP_PORT=-1
|
||||
|
||||
# arguments to pass to jenkins.
|
||||
# --javahome=$JAVA_HOME
|
||||
# --httpPort=$HTTP_PORT (default 8080; disable with -1)
|
||||
# --httpsPort=$HTTP_PORT
|
||||
# --ajp13Port=$AJP_PORT
|
||||
# --argumentsRealm.passwd.$ADMIN_USER=[password]
|
||||
# --argumentsRealm.$ADMIN_USER=admin
|
||||
# --webroot=~/.jenkins/war
|
||||
JENKINS_ARGS="--webroot=/var/run/jenkins/war --httpPort=$HTTP_PORT --ajp13Port=$AJP_PORT"
|
||||
@@ -1,235 +0,0 @@
|
||||
#!/bin/bash
|
||||
# /etc/init.d/jenkins
|
||||
# debian-compatible jenkins startup script.
|
||||
# Amelia A Lewis <alewis@ibco.com>
|
||||
#
|
||||
### BEGIN INIT INFO
|
||||
# Provides: jenkins
|
||||
# Required-Start: $remote_fs $syslog $network
|
||||
# Required-Stop: $remote_fs $syslog $network
|
||||
# Default-Start: 2 3 4 5
|
||||
# Default-Stop: 0 1 6
|
||||
# Short-Description: Start jenkins at boot time
|
||||
# Description: Controls the jenkins continuous integration engine.
|
||||
### END INIT INFO
|
||||
|
||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin
|
||||
|
||||
DESC="Jenkins Continuous Integration Server"
|
||||
NAME=jenkins
|
||||
SCRIPTNAME=/etc/init.d/$NAME
|
||||
|
||||
[ -r /etc/default/$NAME ] && . /etc/default/$NAME
|
||||
|
||||
#DAEMON=$JENKINS_SH
|
||||
DAEMON=/usr/bin/daemon
|
||||
DAEMON_ARGS="--name=$NAME --inherit --env=JENKINS_HOME=$JENKINS_HOME --output=$JENKINS_LOG --pidfile=$PIDFILE"
|
||||
|
||||
SU=/bin/su
|
||||
|
||||
# Exit if the package is not installed
|
||||
[ -x "$DAEMON" ] || exit 0
|
||||
|
||||
# Exit if not supposed to run standalone
|
||||
[ "$RUN_STANDALONE" = "false" ] && exit 0
|
||||
|
||||
# load environments
|
||||
if [ -r /etc/default/locale ]; then
|
||||
. /etc/default/locale
|
||||
export LANG LANGUAGE
|
||||
elif [ -r /etc/environment ]; then
|
||||
. /etc/environment
|
||||
export LANG LANGUAGE
|
||||
fi
|
||||
|
||||
# Load the VERBOSE setting and other rcS variables
|
||||
. /lib/init/vars.sh
|
||||
|
||||
# Define LSB log_* functions.
|
||||
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
|
||||
. /lib/lsb/init-functions
|
||||
|
||||
# Make sure we run as root, since setting the max open files through
|
||||
# ulimit requires root access
|
||||
if [ `id -u` -ne 0 ]; then
|
||||
echo "The $NAME init script can only be run as root"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
check_tcp_port() {
|
||||
local service=$1
|
||||
local assigned=$2
|
||||
local default=$3
|
||||
|
||||
if [ -n "$assigned" ]; then
|
||||
port=$assigned
|
||||
else
|
||||
port=$default
|
||||
fi
|
||||
|
||||
count=`netstat --listen --numeric-ports | grep \:$port[[:space:]] | grep -c . `
|
||||
|
||||
if [ $count -ne 0 ]; then
|
||||
echo "The selected $service port ($port) seems to be in use by another program "
|
||||
echo "Please select another port to use for $NAME"
|
||||
return 1
|
||||
fi
|
||||
}
|
||||
|
||||
#
|
||||
# Function that starts the daemon/service
|
||||
#
|
||||
do_start()
|
||||
{
|
||||
# the default location is /var/run/jenkins/jenkins.pid but the parent directory needs to be created
|
||||
mkdir `dirname $PIDFILE` > /dev/null 2>&1 || true
|
||||
chown $JENKINS_USER `dirname $PIDFILE`
|
||||
# Return
|
||||
# 0 if daemon has been started
|
||||
# 1 if daemon was already running
|
||||
# 2 if daemon could not be started
|
||||
$DAEMON $DAEMON_ARGS --running && return 1
|
||||
|
||||
# Verify that the jenkins port is not already in use, winstone does not exit
|
||||
# even for BindException
|
||||
check_tcp_port "http" "$HTTP_PORT" "8080" || return 1
|
||||
|
||||
# If the var MAXOPENFILES is enabled in /etc/default/jenkins then set the max open files to the
|
||||
# proper value
|
||||
if [ -n "$MAXOPENFILES" ]; then
|
||||
[ "$VERBOSE" != no ] && echo Setting up max open files limit to $MAXOPENFILES
|
||||
ulimit -n $MAXOPENFILES
|
||||
fi
|
||||
|
||||
# --user in daemon doesn't prepare environment variables like HOME, USER, LOGNAME or USERNAME,
|
||||
# so we let su do so for us now
|
||||
$SU -l $JENKINS_USER --shell=/bin/bash -c "$DAEMON $DAEMON_ARGS -- $JAVA $JAVA_ARGS -jar $JENKINS_WAR $JENKINS_ARGS" || return 2
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Verify that all jenkins processes have been shutdown
|
||||
# and if not, then do killall for them
|
||||
#
|
||||
get_running()
|
||||
{
|
||||
return `ps -U $JENKINS_USER --no-headers -f | egrep -e '(java|daemon)' | grep -c . `
|
||||
}
|
||||
|
||||
force_stop()
|
||||
{
|
||||
get_running
|
||||
if [ $? -ne 0 ]; then
|
||||
killall -u $JENKINS_USER java daemon || return 3
|
||||
fi
|
||||
}
|
||||
|
||||
# Get the status of the daemon process
|
||||
get_daemon_status()
|
||||
{
|
||||
$DAEMON $DAEMON_ARGS --running || return 1
|
||||
}
|
||||
|
||||
|
||||
#
|
||||
# Function that stops the daemon/service
|
||||
#
|
||||
do_stop()
|
||||
{
|
||||
# Return
|
||||
# 0 if daemon has been stopped
|
||||
# 1 if daemon was already stopped
|
||||
# 2 if daemon could not be stopped
|
||||
# other if a failure occurred
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0)
|
||||
$DAEMON $DAEMON_ARGS --stop || return 2
|
||||
# wait for the process to really terminate
|
||||
for n in 1 2 3 4 5; do
|
||||
sleep 1
|
||||
$DAEMON $DAEMON_ARGS --running || break
|
||||
done
|
||||
if get_daemon_status; then
|
||||
force_stop || return 3
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
force_stop || return 3
|
||||
;;
|
||||
esac
|
||||
|
||||
# Many daemons don't delete their pidfiles when they exit.
|
||||
rm -f $PIDFILE
|
||||
return 0
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
log_daemon_msg "Starting $DESC" "$NAME"
|
||||
do_start
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
stop)
|
||||
log_daemon_msg "Stopping $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1) log_end_msg 0 ;;
|
||||
2) log_end_msg 1 ;;
|
||||
esac
|
||||
;;
|
||||
restart|force-reload)
|
||||
#
|
||||
# If the "reload" option is implemented then remove the
|
||||
# 'force-reload' alias
|
||||
#
|
||||
log_daemon_msg "Restarting $DESC" "$NAME"
|
||||
do_stop
|
||||
case "$?" in
|
||||
0|1)
|
||||
do_start
|
||||
case "$?" in
|
||||
0) log_end_msg 0 ;;
|
||||
1) log_end_msg 1 ;; # Old process is still running
|
||||
*) log_end_msg 1 ;; # Failed to start
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
# Failed to stop
|
||||
log_end_msg 1
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
status)
|
||||
get_daemon_status
|
||||
case "$?" in
|
||||
0) echo "$DESC is running with the pid `cat $PIDFILE`";;
|
||||
*)
|
||||
get_running
|
||||
procs=$?
|
||||
if [ $procs -eq 0 ]; then
|
||||
echo -n "$DESC is not running"
|
||||
if [ -f $PIDFILE ]; then
|
||||
echo ", but the pidfile ($PIDFILE) still exists"
|
||||
else
|
||||
echo
|
||||
fi
|
||||
|
||||
else
|
||||
echo "$procs instances of jenkins are running at the moment"
|
||||
echo "but the pidfile $PIDFILE is missing"
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $SCRIPTNAME {start|stop|status|restart|force-reload}" >&2
|
||||
exit 3
|
||||
;;
|
||||
esac
|
||||
|
||||
exit 0
|
||||
@@ -1,2 +0,0 @@
|
||||
jenkins.war usr/share/jenkins
|
||||
debian/jenkins.list etc/apt/sources.list.d
|
||||
@@ -1 +0,0 @@
|
||||
deb http://pkg.jenkins-ci.org/debian binary/
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user