commit
aac0c64c10
@ -0,0 +1,2 @@
|
||||
selenium-server-standalone-*.jar
|
||||
selenium-server.jar
|
@ -0,0 +1,26 @@
|
||||
# Purpose
|
||||
|
||||
selenium-deb-pkg implements a simple way to build a Debian package of
|
||||
the selenium-server. This is useful if you want to roll out
|
||||
selenium-server on your infrastructure using Debian repositories.
|
||||
|
||||
The build step will automatically download the selenium-server jar
|
||||
file from Google code and put it into a binary Debian package. A
|
||||
symlink /var/lib/selenium/selenium-server.jar will generated to point
|
||||
to the actual selenium-server file, so you can use
|
||||
/var/lib/selenium/selenium-server.jar in your startup/init script
|
||||
without worrying about the selenium-server version.
|
||||
|
||||
# How to build
|
||||
|
||||
To build the Debian package just use the common way for Debian package
|
||||
builds. If you don't know what this is about, you might just want to
|
||||
run:
|
||||
|
||||
% fakeroot debian/rules binary
|
||||
|
||||
# Adjust selenium-server version
|
||||
|
||||
Edit the configuration file CONFIG and point the 'version' variable to
|
||||
the version of selenium-server you want to use. Do not forget to
|
||||
adjust debian/changelog accordingly.
|
@ -0,0 +1,5 @@
|
||||
selenium-server (2.18.0-1) unstable; urgency=low
|
||||
|
||||
* Initial release.
|
||||
|
||||
-- Michael Prokop <mika@debian.org> Sat, 18 Feb 2012 17:49:56 +0100
|
@ -0,0 +1 @@
|
||||
8
|
@ -0,0 +1,21 @@
|
||||
Source: selenium-server
|
||||
Section: web
|
||||
Priority: extra
|
||||
Maintainer: Michael Prokop <mika@debian.org>
|
||||
Build-Depends: debhelper (>= 8.0.0)
|
||||
Standards-Version: 3.9.2
|
||||
Homepage: https://github.com/mika/selenium-deb-pkg
|
||||
Vcs-Git: git://github.com/mika/selenium-deb-pkg.git
|
||||
Vcs-Browser: https://github.com/mika/selenium-deb-pkg
|
||||
|
||||
Package: selenium-server
|
||||
Architecture: all
|
||||
Depends: ${shlibs:Depends}, ${misc:Depends}, java-runtime-headless | openjdk-6-jre-headless | sun-java6-jre
|
||||
Description: automated web application testing system
|
||||
Selenium automates browsers. Primarily it is for automating web
|
||||
applications for testing purposes, but is certainly not limited
|
||||
to just that. Boring web-based administration tasks can (and
|
||||
should!) also be automated as well.
|
||||
.
|
||||
The Selenium Server is needed in order to run either Selenium RC
|
||||
style scripts or Remote Selenium Webdriver ones.
|
@ -0,0 +1,12 @@
|
||||
Format: http://dep.debian.net/deps/dep5/
|
||||
|
||||
Files: *
|
||||
Copyright: 2012 Michael Prokop <mika@debian.org>
|
||||
License: other
|
||||
These files are in the public domain.
|
||||
.
|
||||
Pedants who belive I cannot legally say that code I have written is in
|
||||
the public domain may consider them instead to be licensed as follows:
|
||||
.
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted under any circumstances. No warranty.
|
@ -0,0 +1,2 @@
|
||||
selenium-server-standalone-*.jar var/lib/selenium
|
||||
selenium-server.jar var/lib/selenium
|
@ -0,0 +1,10 @@
|
||||
#!/usr/bin/make -f
|
||||
%:
|
||||
dh $@
|
||||
|
||||
override_dh_auto_build:
|
||||
./download.sh
|
||||
|
||||
override_dh_auto_clean:
|
||||
rm -f selenium-server.jar
|
||||
rm -f selenium-server-standalone-*.jar
|
@ -0,0 +1,43 @@
|
||||
if ! . ./CONFIG ; then
|
||||
echo "Error sourcing configuration file CONFIG" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# allow overriding via command line
|
||||
if [ -n "$1" ] ; then
|
||||
version="$1"
|
||||
fi
|
||||
|
||||
echo "Using selenium version $version (override via file CONFIG)"
|
||||
|
||||
if [ -n "$version" ] ; then
|
||||
jar="selenium-server-standalone-${version}.jar"
|
||||
else
|
||||
echo "Error: \$version is unset." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_symlink() {
|
||||
ln -sf "$jar" selenium-server.jar
|
||||
}
|
||||
|
||||
if [ -r "$jar" ] ; then
|
||||
echo "File $jar exists already, nothing to do."
|
||||
create_symlink
|
||||
exit 0
|
||||
fi
|
||||
|
||||
echo "Downloading $jar (might take a while...)"
|
||||
if wget --no-verbose -O "$jar" "http://selenium.googlecode.com/files/${jar}" ; then
|
||||
echo OK
|
||||
else
|
||||
echo "ERROR" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if ! test -s "$jar" ; then
|
||||
echo "Empty $jar file." >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
create_symlink
|
Loading…
Reference in new issue