Skip to content
Browse files

Dropping jetty package

  • Loading branch information...
1 parent 7009702 commit c52c57d44540692cfc387cc58bbb1aed29dd1cb4 @mtorromeo committed Dec 4, 2012
Showing with 0 additions and 182 deletions.
  1. +0 −80 jetty/PKGBUILD
  2. +0 −14 jetty/jetty.conf.d
  3. +0 −9 jetty/jetty.default
  4. +0 −22 jetty/jetty.install
  5. +0 −7 jetty/jetty.logrotate
  6. +0 −17 jetty/jetty.service
  7. +0 −33 jetty/rc.jetty
View
80 jetty/PKGBUILD
@@ -1,80 +0,0 @@
-# Maintainer: Massimiliano Torromeo <massimiliano.torromeo@gmail.com>
-
-pkgname=jetty
-pkgver=8.1.7
-_addver=v20120910
-pkgrel=1
-pkgdesc="A full-fledged production-grade lightweight Java Servlet Container"
-arch=('i686' 'x86_64')
-url="http://jetty.codehaus.org/jetty/"
-license=('Apache' 'EPL')
-depends=('java-runtime')
-makedepends=('maven')
-options=('!strip')
-source=(http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/snapshot/jetty-$pkgver.$_addver.tar.bz2
- rc.jetty
- jetty.conf.d
- jetty.default
- jetty.logrotate
- jetty.service)
-install=$pkgname.install
-
-build() {
- cd "$srcdir/$pkgname-$pkgver.$_addver"
- find . -name "*.?ar" -o -name "*.class" -delete
-
- # disable modules
-# -e '/<module>jetty-distribution<\/module>/d' \
- sed -i pom.xml \
- -e '/<module>test.*<\/module>/d'
- sed -i jetty-distribution/src/main/assembly/jetty-assembly.xml \
- -e '/<format>.*>/d'
-
- cat << EOF > "$srcdir/maven.xml"
-<settings>
- <localRepository>$srcdir/mvn-repo</localRepository>
-</settings>
-EOF
-
- MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=256m" \
- mvn -s "$srcdir/maven.xml" \
- -Dmaven.test.skip=true \
- install javadoc:aggregate
-}
-
-package() {
- cd "$srcdir/$pkgname-$pkgver.$_addver"
-
- install -dm755 "$pkgdir/etc/jetty"
- install -dm755 "$pkgdir/usr/bin"
- install -dm755 "$pkgdir/usr/share/doc/jetty"
- install -dm755 "$pkgdir/var/log/jetty"
-
- cp -R jetty-distribution/target/distribution/etc/* "$pkgdir/etc/jetty"
- install -Dm755 jetty-distribution/target/distribution/bin/jetty-xinetd.sh "$pkgdir/usr/share/jetty/bin/jetty-xinetd.sh"
- install -Dm755 jetty-distribution/target/distribution/bin/jetty.sh "$pkgdir/usr/share/jetty/bin/jetty.sh"
- cp -R jetty-distribution/target/distribution/{webapps,contexts,overlays,resources,lib,start.jar,start.ini} "$pkgdir/usr/share/jetty/"
- cp -R jetty-distribution/target/distribution/contexts-available "$pkgdir/usr/share/doc/jetty/contexts"
-
- ln -s /usr/share/jetty/bin/jetty.sh "$pkgdir/usr/bin/jetty"
- ln -s /etc/jetty "$pkgdir/usr/share/jetty/etc"
-
- install -Dm755 "$srcdir/rc.jetty" "$pkgdir/etc/rc.d/jetty"
- install -Dm755 "$srcdir/jetty.default" "$pkgdir/etc/default/jetty"
- install -Dm644 "$srcdir/jetty.conf.d" "$pkgdir/etc/conf.d/jetty"
-
- install -Dm644 "$srcdir/jetty.logrotate" "$pkgdir/etc/logrotate.d/jetty"
- install -Dm644 "$srcdir/jetty.service" "$pkgdir/usr/lib/systemd/system/jetty.service"
-
- find "$pkgdir" -type f -name .donotdelete -delete
-
- sed -i 's|./logs|/var/log/jetty|' "$pkgdir/etc/jetty/"*.xml
- sed -i 's|su - |su -s /bin/sh - |' "$pkgdir/usr/share/jetty/bin/jetty.sh"
-}
-
-sha256sums=('e0d0294e96efd8022ff878b5fa0046485b9218d84d60e6c1b5a5c274aa16657d'
- '7fce6d7efa6785678833ea71e92fb6cdbd201774915f3539eddb669e1c167c3f'
- '270099885684e1731da581395c40e000d292d4e631d1093742b198cbc2077346'
- '6a105620c5009b99818559bacb585a4a4e06c8b650433d372aa8249f16ea6d0f'
- 'da0402440e0a3b66e55387700b2c178c294dc65cc4a7bd079c622343845adecb'
- '515466663565b5e3abf76834f7ea89041bad379a04496f1d496e9a830d3b765a')
View
14 jetty/jetty.conf.d
@@ -1,14 +0,0 @@
-# set JAVA_HOME
-[ -f /etc/profile.d/jre.sh ] && . /etc/profile.d/jre.sh
-[ -f /etc/profile.d/jdk.sh ] && . /etc/profile.d/jdk.sh
-[ -f /etc/profile.d/openjdk6.sh ] && . /etc/profile.d/openjdk6.sh
-# or set your variant
-#JAVA_HOME=/somewhere
-
-# Other Java options
-#JAVA_OPTS=
-
-JETTY_HOME=/opt/jetty
-
-# Jetty's variables
-#JETTY_OPTS=
View
9 jetty/jetty.default
@@ -1,9 +0,0 @@
-JAVA_HOME=${JAVA_HOME:-/usr/lib/jvm/java-7-openjdk/jre}
-JAVA_OPTIONS=
-JETTY_CONF=/etc/jetty/jetty.conf
-JETTY_USER=jetty
-JETTY_HOME=/usr/share/jetty
-JETTY_CONSOLE=/var/log/jetty/console.log
-JETTY_PORT=8080
-JETTY_RUN=/run/jetty
-JETTY_PID=/run/jetty.pid
View
22 jetty/jetty.install
@@ -1,22 +0,0 @@
-post_install() {
- groupadd jetty &>/dev/null
- useradd -g jetty -d /usr/lib/jetty -s /bin/false jetty &>/dev/null
- chown -R jetty:jetty /var/log/jetty
- chown -R jetty:jetty /usr/share/jetty
-}
-
-post_upgrade(){
- getent group jetty >/dev/null 2>&1 || groupadd jetty &>/dev/null
- getent passwd jetty >/dev/null 2>&1 || useradd -g jetty -d /usr/lib/jetty -s /bin/false jetty &>/dev/null
- chown -R jetty:jetty /var/log/jetty
-}
-
-post_remove() {
- if getent passwd jetty >/dev/null 2>&1; then
- userdel jetty
- fi
- if getent group jetty >/dev/null 2>&1; then
- groupdel jetty
- fi
-}
-
View
7 jetty/jetty.logrotate
@@ -1,7 +0,0 @@
-/var/log/jetty/*.log {
- copytruncate
- weekly
- rotate 52
- compress
- missingok
-}
View
17 jetty/jetty.service
@@ -1,17 +0,0 @@
-# Systemd unit file for jetty
-#
-# Multiple copies of this service (i.e. multiple concurrently running
-# jetty servers) are not supported right now. Expect this to come with
-# future updates
-
-[Unit]
-Description=Jetty Web Application Server
-After=syslog.target network.target
-
-[Service]
-Type=forking
-ExecStart=/usr/bin/jetty start
-ExecStop=/usr/bin/jetty stop
-
-[Install]
-WantedBy=multi-user.target
View
33 jetty/rc.jetty
@@ -1,33 +0,0 @@
-#!/bin/bash
-
-# general config
-. /etc/rc.conf
-. /etc/rc.d/functions
-
-case "$1" in
- start)
- stat_busy "Starting Jetty Servlet Container"
- /usr/bin/jetty start >/dev/null 2>&1
- if [ $? -gt 0 ]; then
- stat_fail
- else
- add_daemon jetty
- stat_done
- fi
- ;;
- stop)
- stat_busy "Stopping Jetty Servlet Container"
- /usr/bin/jetty stop >/dev/null 2>&1
- if [ $? -gt 0 ]; then
- stat_fail
- else
- rm_daemon jetty
- stat_done
- fi
- ;;
- restart)
- /usr/bin/jetty restart
- ;;
- *)
- echo "usage: $0 {start|stop|restart}"
-esac

0 comments on commit c52c57d

Please sign in to comment.
Something went wrong with that request. Please try again.