moved everything into trunk/ subdirectory, as a preparation for the conversion to git

This commit is contained in:
Manuel Friedli 2014-01-21 13:08:47 +00:00
parent df41424518
commit 52d584b8fb
48 changed files with 0 additions and 0 deletions

View file

@ -0,0 +1,7 @@
AUX backintime-1.0.24-dont-install-license.patch 1984 SHA256 019d04fc53f88e1310209467174998cd1d267c8eb048aeff66b65ad463fb5e8a SHA512 46d76097dc91c6064e0f8d2c3742bfe96b6ab0a11eb1f6eea2ef27ff7f300924d63c3ef987a4cb41b477ab3999d0d1cadb9af42160f145a3e456cae71c1c40f7 WHIRLPOOL a61d297ab983dcd52395ef3fdd6b81fbb96e4fc29157cc8bfb08edfe23a2bfbcf37e008cd0279a34a1ef87b31d9c1acfeb04a1357a79325d43f50ff49bea8447
AUX backintime-1.0.4-dont-install-license.diff 1729 SHA256 e55c4c3c64a6f87c0593c5d840c778bc3c8cf3815d73dbc60ac05f454b97a814 SHA512 a0a440b002ed14fafdd288793d2371f98573fcd93952fef2c8a81f06cf0c834a2a647de6599cc2d942bfa05173132bd905b7d8053d39aa1461c99aeb36549489 WHIRLPOOL 0c9127d6c94b3bb891cfa4451bd73150c312d9d7ba6a2a84a02d5a9781c861da71886d4a763766cde9b7f99c269924128cb9c2aa4c7ace36898c9439271459db
AUX backintime-1.0.4-fix-configure-warning.diff 541 SHA256 3984fc7ff00b1de4c0491aa8d026ac1fb2e111a8b711cafe30ac4f491fa29383 SHA512 d8c99cf76518c4d5614762437e0ac57f1ab1c8b8be7dba45afecfea1acedd20e575b35a7a4a164c3127ae07234d35194569c8eddf24fe6fec76bddcd6d404a5f WHIRLPOOL 547d28cace5b52d2b4127ba533f9a93a3caa9ed24807e66eb3e09fe96fcf790cc8363eba012428a6a7b322965c99b0d28f9fa2ef99d98497bc26773cae59b9b8
AUX backintime-1.0.4-kde4-root.desktop 275 SHA256 3fbb0c720a33d1aa740c54c3d40448fc8dcf56208e16d91105bdf90149ca791a SHA512 aba498cf0d3dc6f90d39e9b4053498ce48d42e06a4bd6434cad478d5de13c570133cefdbba0669fee07537f012f117102cc79ebaca9b653bce58b50c94f78267 WHIRLPOOL 851c30dc8726c42fcc850499cc5484a8355dd9f4e3b4e760e443776fe20739450b388afe0e25463ec88e94345991ce38a118a4cde51bf5db96973c2542a44090
AUX backintime-1.0.6-wrapper.patch 1260 SHA256 5e5bb5739447af8368dff03c9c981dbd75dcbea8023851f7ed40db3c4b7ee318 SHA512 b7850a99c27c6f1fb6ce50eeb9322dabe6ad7777d4f42b6c9e72584dbd7a80656475c20de2b270a942fb7eefcb2d383760dd7a06424e6639d5e7bac95f91e746 WHIRLPOOL d240d07e26d78010ccc0015ce0a3510a00bd9bc1a650395f044dffaaa98d8f5acdd5ee06cb5cf8de9a16f1ff815548a42fae7ac25afec2160d708f3c138aa0d5
DIST backintime-1.0.24.tar.gz 507183 SHA256 5d9bac6fd74dd2258786b3481af260beb0f544d0e3560a0db2c8c0a87973384d SHA512 57469409e101207dd0c90f47ac7a709f5c7faab2cd7c60ff014a431912483b87e677bb7d0d2e25609d318f2a7ceb539bac4cc52bf7284d987200d98f2be670a7 WHIRLPOOL 476c158744918510d26d627f9cb833149ef99af85d3d423de2a2e61bc995032131f86df194825876f81ecb756109b328118be741f92cc98f11f7340c1a1e10ca
EBUILD backintime-1.0.24-r1.ebuild 2305 SHA256 f5457de1b4cbafcb70c7cc0a38da1649ac7e3d438583a95d5d7bb77d5c4f28b4 SHA512 5dedf5f614bcc27db891bc3d75de18bf36dd02fde9d45e9e244b47bd657589206426d888d072f465baf52c86f7dbd0ac5ec3d6c02fa46ab9c42ef65f47773ff2 WHIRLPOOL 9d41268b7b0e1cc93eec8c8ee698da795aaad705b2a762de8806efd5d9bf621eae195d0b412cebeef1c17ab5e224d1c15a2d94388536b0c2639c8949664901e6

View file

@ -0,0 +1,97 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/backintime/backintime-1.0.24-r1.ebuild,v 1.2 2013/07/28 08:12:45 jcallen Exp $
EAPI=5
PYTHON_COMPAT=( python{2_6,2_7} )
inherit eutils python-single-r1
DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
HOMEPAGE="http://backintime.le-web.org/"
SRC_URI="http://${PN}.le-web.org/wp-content/uploads/2009/03/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="kde gnome"
RDEPEND="${PYTHON_DEPEND}
dev-python/keyring[${PYTHON_USEDEP}]
dev-python/notify-python[${PYTHON_USEDEP}]
net-misc/rsync[xattr,acl]
kde? (
>=kde-base/kdelibs-4
kde-base/pykde4[${PYTHON_USEDEP}]
kde-base/kompare
kde-base/kdesu
)
gnome? (
gnome-base/libglade
dev-util/meld
gnome-base/gnome-session
dev-python/gnome-vfs-python
dev-python/libgnome-python
dev-python/pygobject:2[${PYTHON_USEDEP}]
dev-python/pygtk[${PYTHON_USEDEP}]
)"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
S=${WORKDIR}
src_prepare() {
epatch "${FILESDIR}"/${P}-dont-install-license.patch
epatch "${FILESDIR}"/${PN}-1.0.4-fix-configure-warning.diff
#fix doc install location
sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
kde4/backintime-kde4-root.desktop || die
epatch "${FILESDIR}"/${PN}-1.0.6-wrapper.patch
sed -e "/ python /s:python:${PYTHON}:" \
-e "/^APP_PATH=/s:/usr:${EPREFIX}/usr:" \
-i common/backintime \
-i gnome/backintime-gnome \
-i kde4/backintime-kde4 || die
if [ -n ${LINGUAS+x} ] ; then
cd common/po || die
for po in *.po ; do
if ! has ${po/.po} ${LINGUAS} ; then
rm ${po} || die
fi
done
fi
}
backintime_run() {
local variant
for variant in ${backintime_variants} ; do
pushd "${S}"/${variant} || die
default ${@}
popd
done
}
src_configure() {
backintime_variants="common $(usex gnome gnome "") $(usex kde kde4 '')"
backintime_run
}
src_compile() {
backintime_run
}
src_install() {
backintime_run DESTDIR="${D}" install
python_optimize "${D}"
python_fix_shebang "${D}"
}

View file

@ -0,0 +1,49 @@
--- backintime-1.0.4/common/Makefile.template
+++ backintime-1.0.4/common/Makefile.template
@@ -17,10 +17,6 @@
install -d $(DEST)/share/backintime/plugins
install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
- #install copyright file
- install -d $(DEST)/share/doc/backintime-common
- install --mode=644 debian_specific/copyright $(DEST)/share/doc/backintime-common
-
#install doc file(s)
install -d $(DEST)/share/doc/backintime
install --mode=644 ../AUTHORS $(DEST)/share/doc/backintime
--- backintime-1.0.24/common/Makefile.template
+++ backintime-1.0.24/common/Makefile.template
@@ -20,7 +20,6 @@
#install doc file(s)
install -d $(DEST)/share/doc/backintime
install --mode=644 ../AUTHORS $(DEST)/share/doc/backintime
- install --mode=644 ../LICENSE $(DEST)/share/doc/backintime
install --mode=644 ../README $(DEST)/share/doc/backintime
install --mode=644 ../TRANSLATIONS $(DEST)/share/doc/backintime
install --mode=644 ../VERSION $(DEST)/share/doc/backintime
--- backintime-1.0.4/gnome/Makefile.template
+++ backintime-1.0.4/gnome/Makefile.template
@@ -15,10 +15,6 @@
install -d $(DEST)/share/backintime/plugins
install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
- #install copyright file
- install -d $(DEST)/share/doc/backintime-gnome
- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-gnome
-
#install man file(s)
install -d $(DEST)/share/man/man1
install --mode=644 man/C/*.gz $(DEST)/share/man/man1
--- backintime-1.0.4/kde4/Makefile.template
+++ backintime-1.0.4/kde4/Makefile.template
@@ -19,10 +19,6 @@
install -d $(DEST)/bin
install backintime-kde4 $(DEST)/bin
- #install copyright file
- install -d $(DEST)/share/doc/backintime-kde4
- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-kde4
-
#install .desktop file(s)
install -d $(DEST)/share/applications/kde4
install --mode=644 *.desktop $(DEST)/share/applications/kde4

View file

@ -0,0 +1,39 @@
--- backintime-1.0.4.orig/common/Makefile.template 2010-07-04 14:30:19.000000000 +0200
+++ backintime-1.0.4/common/Makefile.template 2010-11-01 09:50:43.000000000 +0100
@@ -17,10 +17,6 @@
install -d $(DEST)/share/backintime/plugins
install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
- #install copyright file
- install -d $(DEST)/share/doc/backintime-common
- install --mode=644 debian_specific/copyright $(DEST)/share/doc/backintime-common
-
#install doc file(s)
install -d $(DEST)/share/doc/backintime
install --mode=644 ../AUTHORS $(DEST)/share/doc/backintime
--- backintime-1.0.4.orig/gnome/Makefile.template 2010-07-18 10:25:58.000000000 +0200
+++ backintime-1.0.4/gnome/Makefile.template 2010-11-01 09:50:42.000000000 +0100
@@ -15,10 +15,6 @@
install -d $(DEST)/share/backintime/plugins
install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
- #install copyright file
- install -d $(DEST)/share/doc/backintime-gnome
- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-gnome
-
#install man file(s)
install -d $(DEST)/share/man/man1
install --mode=644 man/C/*.gz $(DEST)/share/man/man1
--- backintime-1.0.4.orig/kde4/Makefile.template 2010-07-18 10:26:09.000000000 +0200
+++ backintime-1.0.4/kde4/Makefile.template 2010-11-01 09:50:41.000000000 +0100
@@ -19,10 +19,6 @@
install -d $(DEST)/bin
install backintime-kde4 $(DEST)/bin
- #install copyright file
- install -d $(DEST)/share/doc/backintime-kde4
- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-kde4
-
#install .desktop file(s)
install -d $(DEST)/share/applications/kde4
install --mode=644 *.desktop $(DEST)/share/applications/kde4

View file

@ -0,0 +1,17 @@
diff -Naur backintime-1.0.4.orig/kde4/configure backintime-1.0.4/kde4/configure
--- backintime-1.0.4.orig/kde4/configure 2010-11-08 14:36:52.000000000 +0100
+++ backintime-1.0.4/kde4/configure 2010-11-08 14:42:18.000000000 +0100
@@ -16,13 +16,6 @@
fi
fi
-#check for kdesudo (if not use kdesu)
-if [ -z `which kdesudo` ]; then
- mv backintime-kde4-root.desktop.kdesudo backintime-kde4-root.desktop
-else
- mv backintime-kde4-root.desktop.kdesu backintime-kde4-root.desktop
-fi
-
cp Makefile.template Makefile
echo "All OK. Now run:"

View file

@ -0,0 +1,11 @@
[Desktop Entry]
Name=Back In Time (root)
Exec=kdesu -c backintime-kde4
Icon=document-save
Terminal=false
X-MultipleArgs=false
Type=Application
StartupNotify=true
Categories=Qt;KDE;System;
Comment=Simple backup system
Comment[sl]=Enostaven sistem ustvarjanja varnostnih kopij

View file

@ -0,0 +1,45 @@
--- backintime-1.0.8/common/backintime
+++ backintime-1.0.8/common/backintime
@@ -17,11 +17,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-if [ -f backintime.py ]; then
- APP_PATH="."
-else
- APP_PATH="/usr/share/backintime/common"
-fi
+APP_PATH="/usr/share/backintime/common"
python ${APP_PATH}/backintime.py "$@"
--- backintime-1.0.8/gnome/backintime-gnome
+++ backintime-1.0.8/gnome/backintime-gnome
@@ -17,11 +17,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-if [ -f app.py ]; then
- APP_PATH="."
-else
- APP_PATH="/usr/share/backintime/gnome"
-fi
+APP_PATH="/usr/share/backintime/gnome"
python ${APP_PATH}/app.py "$@"
--- backintime-1.0.8/kde4/backintime-kde4
+++ backintime-1.0.8/kde4/backintime-kde4
@@ -17,11 +17,7 @@
# with this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
-if [ -f app.py ]; then
- APP_PATH="."
-else
- APP_PATH="/usr/share/backintime/kde4"
-fi
+APP_PATH="/usr/share/backintime/kde4"
python ${APP_PATH}/app.py "$@"

View file

@ -0,0 +1,6 @@
AUX jboss-as.conf 1560 SHA256 a2a21bf3997481271696ad0911c387d917c2333e3e300e42f931a3f3b1eb9f71 SHA512 cae7c702d8f25b85d21d9c46319981a535c2506c1458cf442fe930afc907a41bb5725025632062568a5de0c11a79a392111f7fe055d09352be8b9b6b19417158 WHIRLPOOL 28f294c3d44c42c89b4fc6686a1518ef596ab1fb478e1872188698213828d740796200f1ad6be76385ba6041efb632b3b170e47344edffdeff38a3a1e1eebfc1
AUX jboss-as.init 3112 SHA256 851e0303430d18c43f8b1543617e278e0878bc66e32eab818e6b77c41b87df20 SHA512 79fc22caccba7d45333118e9e1e556f16d7a2d1546eb15869fa66ed32d03cc39359f95f21d32b30ad22273fa4cdf8bfb0b355e56b07e876f291b9e9ad84ee15e WHIRLPOOL f331a41cca09046abb89a4a2bf826fcd4876c6aa986e062f15eb03a5565e89890f7eaae31e5c9190ead3661ff04a2bd673418e8596be8ec6d0dc43c0596caf4c
DIST jboss-as-7.1.1.Final.tar.gz 132775715 SHA256 88fd3fdac4f7951cee3396eff3d70e8166c3319de82d77374a24e3b422e0b2ad SHA512 bfa15332dd2e3b88b5653d6ef4d21c5d8e5c30f091b7ce33fd079b337955d8b0f08be05b356664ec6b2f925de9533d490e00f5cd8d39b1ed5fca83cf05509004 WHIRLPOOL 67e3017758176ffcaaaa3a3c011e4f42cdf432caef2a6f74abeb30b0d49473ea9b24f7dee48c62ca0036ff5d42d3b5b0304575860bce283f08ee1086c436108b
DIST jboss-as-7.1.3.Final.tar.gz 122520532 SHA256 4d1068e999d9d9f4d9fa0779889fc9232a2021b28612b2f131d36714cea20d59 SHA512 f562523a32dc73cb7ee4ffafc9cb15acd2d1623f87d6865e232c2d4419cd0cdecb68c811ffc84d6d99dec30f2c6040ece6d2af2f471f3163254711f1db4aa45f WHIRLPOOL ee43365d09e6b2e52835802602a336c54af447b894513d3461803e95d6c2ebedf5a981534cedb9f7cf2b9c42414d11cc74ff73c5469d5d136dfc4eb9570ccc9e
EBUILD jboss-as-bin-7.1.1.ebuild 3010 SHA256 4dc4b0f956d952b4b1827913d0f48808dc2ea6acb9a5c3a062b2b6611e131e26 SHA512 e5d9926aa58fe9800e6887b77692b374eca217e81ad41a4ad66d7270bc6a6dc49d30e4df2898a6e5af08cef2373366aa22978c90c0a0d3e8a5a3eab0acdbabe6 WHIRLPOOL 2152d3c9b6856a389a2768b015a1200dc6896920101793777dfa830c9fd5a3b37bdbe17e33a319551f3bb9add4f2cafac59cebba09d2c6437d47dc916df911c2
EBUILD jboss-as-bin-7.1.3.ebuild 3010 SHA256 4dc4b0f956d952b4b1827913d0f48808dc2ea6acb9a5c3a062b2b6611e131e26 SHA512 e5d9926aa58fe9800e6887b77692b374eca217e81ad41a4ad66d7270bc6a6dc49d30e4df2898a6e5af08cef2373366aa22978c90c0a0d3e8a5a3eab0acdbabe6 WHIRLPOOL 2152d3c9b6856a389a2768b015a1200dc6896920101793777dfa830c9fd5a3b37bdbe17e33a319551f3bb9add4f2cafac59cebba09d2c6437d47dc916df911c2

View file

@ -0,0 +1,53 @@
# Config file for /etc/init.d/__JBOSS_NAME__
# Location of the standalone server directory
#
SERVER_BASE_DIR="/var/lib/__JBOSS_NAME__"
# Directory with configuration files
#
#SERVER_CONFIG_DIR="/etc/__JBOSS_NAME__"
# The main server configuration file
#
#SERVER_CONFIG="standalone.xml"
# Where to put log files
#
#SERVER_LOG_DIR="/var/log/__JBOSS_NAME__"
# User who should own the process.
#
#JBOSS_USER=jboss
#JBOSS_GROUP=jboss
# The amount of time to wait for startup
#
#STARTUP_WAIT=60
# The amount of time to wait for shutdown
#
#SHUTDOWN_WAIT=30
# Uncomment the following line to prevent manipulation of JVM options
# by shell scripts.
#
#PRESERVE_JAVA_OPTS=true
# Specify options to pass to the Java VM.
#
JAVA_OPTS="-Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true -Dorg.jboss.resolver.warning=true -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000"
JAVA_OPTS="$JAVA_OPTS -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=true"
JAVA_OPTS="$JAVA_OPTS -Djboss.server.default.config=standalone.xml"
# Sample JPDA settings for remote socket debugging
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n"
# Sample JPDA settings for shared memory debugging
#JAVA_OPTS="$JAVA_OPTS -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=jboss"
# Uncomment to not use JBoss Modules lockless mode
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.lockless=false"
# Uncomment to gather JBoss Modules metrics
#JAVA_OPTS="$JAVA_OPTS -Djboss.modules.metrics=true"

View file

@ -0,0 +1,118 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
name="JBoss AS (standalone)"
description="JBoss Application Server __JBOSS_VER__ in standalone mode"
depend() {
need net
use dns
provide jboss-as
}
init_vars() {
jboss_home="/opt/__JBOSS_NAME__"
temp_dir="/var/tmp/__JBOSS_NAME__"
pidfile="/var/run/__JBOSS_NAME__/standalone.pid"
base_dir=${SERVER_BASE_DIR:-"/var/lib/__JBOSS_NAME__"}
data_dir=${SERVER_DATA_DIR:-"${base_dir}/data"}
deploy_dir=${SERVER_DEPLOY_DIR:-"${data_dir}/content"}
config_dir=${SERVER_CONFIG_DIR:-"/etc/__JBOSS_NAME__"}
log_dir=${SERVER_LOG_DIR:-"/var/log/__JBOSS_NAME__"}
config=${SERVER_CONFIG:-"standalone.xml"}
user=${JBOSS_USER:-"jboss"}
group=${JBOSS_GROUP:-"jboss"}
startup_wait=${STARTUP_WAIT:-"60"}
shutdown_wait=${SHUTDOWN_WAIT:-"30"}
console_log="${log_dir}/console.log"
jboss_opts="-Djboss.server.base.dir=${base_dir}"
jboss_opts="${jboss_opts} -Djboss.server.config.dir=${config_dir}"
jboss_opts="${jboss_opts} -Djboss.server.data.dir=${data_dir}"
jboss_opts="${jboss_opts} -Djboss.server.log.dir=${log_dir}"
jboss_opts="${jboss_opts} -Djboss.server.temp.dir=${temp_dir}"
jboss_opts="${jboss_opts} -Djboss.server.deploy.dir=${deploy_dir}"
command="${jboss_home}/bin/standalone.sh"
command_args="${jboss_opts} --server-config ${config} ${JBOSS_OPTIONS}"
}
init_env_vars() {
# Configuration variables for JBoss script
export JAVA_HOME=`java-config --jre-home`
export JAVA_OPTS
export JBOSS_HOME=${jboss_home}
export JBOSS_PIDFILE="${pidfile}"
export LAUNCH_JBOSS_IN_BACKGROUND=1
}
start_pre() {
init_vars
init_env_vars
if [ ! -d ${base_dir} ]; then
eerror "Server base directory ${base_dir} does not exist!"
exit 2
fi
if [ ! -f "${config_dir}/${config}" ]; then
eerror "Configuration file ${config} does not exist!"
exit 2
fi
if [ ${user} = "root" ]; then
eerror "It's not a good idea to run as root!"
exit 2
fi
checkpath -d -o ${user} "${config_dir}"
checkpath -d -o ${user} "${log_dir}"
checkpath -d -o "${user}:${group}" -m750 "${data_dir}"
checkpath -d -o "${user}:${group}" -m750 "${deploy_dir}"
checkpath -d -o "${user}:${group}" -m700 "${temp_dir}"
checkpath -d -o "${user}:${group}" -m700 `dirname ${pidfile}`
checkpath -f -o ${user} "${console_log}"
cat /dev/null > "${console_log}"
}
start() {
ebegin "Starting JBoss Application Server __JBOSS_VER__"
start-stop-daemon --start --background --quiet \
--user="${user}:${group}" \
--pidfile="${pidfile}" \
--stdout "${console_log}" --stderr "${console_log}" \
--exec ${command} -- ${command_args} \
count=0; result=1
until [ $count -gt $startup_wait ]; do
grep 'JBoss AS.*started in' "$console_log" > /dev/null
if [ $? -eq 0 ] ; then
result=0
break
fi
sleep 1
let count=$count+1;
done
eend $result
}
stop() {
ebegin "Stopping JBoss Application Server __JBOSS_VER__"
init_vars
start-stop-daemon --stop --quiet \
--pidfile=${pidfile} \
--retry=TERM/${shutdown_wait}/KILL/10 \
--exec ${command} -- ${command_args}
eend $?
}

View file

@ -0,0 +1,115 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
# Maintainer notes:
# - This ebuild supports only "standalone mode". If you want to use JBoss AS in
# "domain mode", please fix this ebuild yourself and send me a pull request.
DESCRIPTION="JBoss Application Server ${PV} (standalone only)"
inherit eutils user
MY_P="jboss-as-${PV}.Final"
SLOT="7.1"
SRC_URI="http://download.jboss.org/jbossas/${SLOT}/jboss-as-${PV}.Final/jboss-as-${PV}.Final.tar.gz"
HOMEPAGE="http://www.jboss.org/jbossas/"
KEYWORDS="~amd64 ~x86"
LICENSE="LGPL-2.1"
IUSE="+doc"
RDEPEND=">=virtual/jdk-1.6"
DEPEND="sys-apps/sed ${RDEPEND}"
S="${WORKDIR}/${MY_P}"
JBOSS_NAME="jboss-as-${SLOT}"
INSTALL_DIR="/opt/${JBOSS_NAME}"
SERVER_CONFIG_DIR="/etc/${JBOSS_NAME}"
SERVER_BASE_DIR="/var/lib/${JBOSS_NAME}"
SERVER_LOG_DIR="/var/log/${JBOSS_NAME}"
SERVER_TEMP_DIR="/var/tmp/${JBOSS_NAME}"
pkg_setup() {
enewgroup jboss 260 || die "Unable to create jboss group"
enewuser jboss 260 /bin/sh ${INSTALL_DIR} jboss \
|| die "Unable to create jboss user"
}
src_install() {
# create dir structure
diropts -m755
dodir "${INSTALL_DIR}"
diropts -m755 -o jboss -g jboss
dodir "${SERVER_CONFIG_DIR}/"
diropts -m750 -o jboss -g jboss
dodir "${SERVER_BASE_DIR}"
keepdir "${SERVER_BASE_DIR}/lib"
keepdir "${SERVER_BASE_DIR}/deployments"
keepdir "${SERVER_LOG_DIR}"
keepdir "${SERVER_TEMP_DIR}"
# copy files
insopts -m644
diropts -m755
insinto "${INSTALL_DIR}/bin"
doins bin/appclient.conf bin/jboss-cli.xml
# remove unused files
rm -f bin/domain.sh bin/run.sh
exeinto "${INSTALL_DIR}/bin"
doexe bin/*.sh
insinto "${INSTALL_DIR}"
doins -r appclient bundles welcome-content jboss-modules.jar *.txt
einfo "This may take a few minutes..."
doins -r modules
if use doc; then
docinto "examples"
dodoc docs/examples/configs/*
docinto "schema"
dodoc docs/schema/*
fi
diropts -m750 -o jboss -g jboss
insopts -m640 -o jboss -g jboss
insinto "${SERVER_CONFIG_DIR}"
doins -r standalone/configuration/*
insinto "${SERVER_BASE_DIR}/deployments"
doins -r standalone/deployments/*
# some utilities doesn't work with non-default paths...
dosym "${SERVER_BASE_DIR}" "${INSTALL_DIR}/standalone"
dosym "${SERVER_CONFIG_DIR}" "${SERVER_BASE_DIR}/configuration"
dosym "${SERVER_LOG_DIR}" "${SERVER_BASE_DIR}/log"
dosym "${SERVER_TEMP_DIR}" "${SERVER_BASE_DIR}/tmp"
# filter and copy init.d, conf.d
for FILE in "${FILESDIR}"/jboss-as.*; do
cp "${FILE}" "${T}"
tfile="${T}"/`basename ${FILE}`
sed -i -e "s:__JBOSS_NAME__:${JBOSS_NAME}:g" $tfile || die "sed failed"
sed -i -e "s:__JBOSS_VER__:${SLOT}:g" $tfile || die "sed failed"
done
newinitd "${T}/jboss-as.init" ${JBOSS_NAME}
newconfd "${T}/jboss-as.conf" ${JBOSS_NAME}
}
pkg_postinst() {
ewarn "This ebuild supports only \"standalone mode\". If you want to use"
ewarn "JBoss AS in \"domain mode\", please fix this ebuild yourself and send"
ewarn "me a pull request."
}

View file

@ -0,0 +1,3 @@
AUX gitlab-shell-1.8.0-paths-from-config.patch 1725 SHA256 b730b953f5cbb7b1c248cf56074832018f78a8bdcc20f2e3869fd30be03b03e4 SHA512 ac214bdcf4d6c63d61914c11d14b24136b4eb0cda4bd09476b58e6bfedfd5a5245a5d20f128d57d05b945afa03fa56f85c4c4df8508767443720596c7beaeddc WHIRLPOOL bed74d3544be5132818a9a42770c9c9775e6b491811ff23eb186f8ea19a86912dbc399c8f92ff7d6c5f951dafd21f4f893495d3d622d5be6af02205ed3b77e06
DIST gitlab-shell-1.8.0.tar.gz 14912 SHA256 ac75e2a5d234f4e64760e2eda5a94c633ec2b31c269deda01e69c6bbc0a25feb SHA512 ab829b597e4610675c773be83035506a97dc623c41f294c94b57fc7351d7985156c5882ba9b1c84d140fe0e0b5c613ab138f8161eee82c4727d049aa39e17efe WHIRLPOOL 72896d55d828d7c9539168391206a908c4a899079eb9bd1461fcdca4947abd806ca91a098d6c4bd67e1f15089636b960704f89285613b86588d039e7b4df4912
EBUILD gitlab-shell-1.8.0.ebuild 2917 SHA256 aba1bb7b5a671aea60305e21dbaa92f067e58edcfb2a9cf82908aecaf7701593 SHA512 858b6510704a7b40f5782adfdb6fd612102202f9827adeb3b600ee0b5fc94cd38af7de878418af9576e8b00c15000f7ed7d1c70b5352b3263379bb2de9fdbba5 WHIRLPOOL 27acd111650b5c7583745165bd4c9d519cf519e0663dc1652e67e6ddd8ac3b495701ad1c6089588e8d1eda78442540e9d495f3059b032b5502570749ff26a904

View file

@ -0,0 +1,39 @@
--- a/support/rewrite-hooks.sh 2013-08-26 11:59:22.000000000 +0200
+++ b/support/rewrite-hooks.sh 2013-09-10 21:31:30.135841009 +0200
@@ -1,13 +1,14 @@
#!/bin/bash
# $1 is an optional argument specifying the location of the repositories directory.
-# Defaults to /home/git/repositories if not provided
+# If no argument is provided then path is readed from /etc/gitlab-shell.yml
-home_dir="/home/git"
-src=${1:-"$home_dir/repositories"}
+base_path="$(realpath `dirname $(readlink -f "$0")`/..)"
+repos_path="$(ruby -ryaml -e 'puts YAML::load_file("/etc/gitlab-shell.yml")["repos_path"]')"
+src=${1:-"$repos_path"}
function create_link_in {
- ln -s -f "$home_dir/gitlab-shell/hooks/update" "$1/hooks/update"
+ ln -s -f "$base_path/hooks/update" "$1/hooks/update"
}
for dir in `ls "$src/"`
--- a/support/truncate_repositories.sh 2013-08-26 11:59:22.000000000 +0200
+++ b/support/truncate_repositories.sh 2013-09-10 21:31:30.135841009 +0200
@@ -1,12 +1,12 @@
#!/bin/bash
-home_dir="/home/git"
+repos_path="$(ruby -ryaml -e 'puts YAML::load_file("/etc/gitlab-shell.yml")["repos_path"]')"
echo "Danger!!! Data Loss"
while true; do
- read -p "Do you wish to delete all directories (except gitolite-admin.git) from $home_dir/repositories/ (y/n) ?: " yn
+ read -p "Do you wish to delete all directories (except gitolite-admin.git) from $repos_path (y/n) ?: " yn
case $yn in
- [Yy]* ) sh -c "find $home_dir/repositories/. -maxdepth 1 -not -name 'gitolite-admin.git' -not -name '.' | xargs rm -rf"; break;;
+ [Yy]* ) sh -c "find $repos_path/. -maxdepth 1 -not -name 'gitolite-admin.git' -not -name '.' | xargs rm -rf"; break;;
[Nn]* ) exit;;
* ) echo "Please answer yes or no.";;
esac

View file

@ -0,0 +1,109 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
USE_RUBY="ruby19 ruby20"
inherit eutils ruby-ng user
DESCRIPTION="SSH access and repository management for GitLab"
HOMEPAGE="https://github.com/gitlabhq/gitlab-shell"
SRC_URI="https://github.com/gitlabhq/gitlab-shell/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
RDEPEND="
dev-vcs/git
virtual/ssh"
ruby_add_bdepend "
virtual/ruby-ssl"
MERGE_TYPE="binary"
RUBY_PATCHES=(
"${P}-paths-from-config.patch"
)
GIT_USER="git"
DEST_DIR="/usr/share/${PN}"
DATA_DIR="/var/lib/git"
LOGS_DIR="/var/log/gitlab"
CONF_FILE="/etc/gitlab-shell.yml"
pkg_setup() {
enewgroup ${GIT_USER}
enewuser ${GIT_USER} -1 /bin/bash ${DATA_DIR} "${GIT_USER}"
}
all_ruby_prepare() {
# fix paths
sed -i -E \
-e "s|/home/git|${DATA_DIR}|" \
-e "s|[\# ]*(log_file: ).*|\1\"${LOGS_DIR}/gitlab-shell.log\"|" \
config.yml.example || die "failed to filter config.yml.example"
sed -i \
-e "s|File\.join(ROOT_PATH, 'config.yml')|'${CONF_FILE}'|" \
lib/gitlab_config.rb || die "failed to filter gitlab_config.rb"
}
all_ruby_install() {
# install lib
insinto ${DEST_DIR}; doins -r lib LICENSE README.md VERSION
# install scripts
exeinto ${DEST_DIR}/bin; doexe bin/*
exeinto ${DEST_DIR}/hooks; doexe hooks/*
exeinto ${DEST_DIR}/support; doexe support/*
# create symlinks to bin
local name; for name in $(basename -a bin/gitlab-*); do
dosym "${DEST_DIR}/bin/${name}" "/usr/bin/${name}"
done
insinto $(dirname ${CONF_FILE})
newins config.yml.example $(basename ${CONF_FILE})
# prepare directories
diropts -m750; dodir ${DATA_DIR}
diropts -m770; keepdir ${DATA_DIR}/repositories
diropts -m755; dodir ${LOGS_DIR}
# GitLab stupidly expects that gitlab-shell is in home of git user...
dosym ${DEST_DIR} ${DATA_DIR}/gitlab-shell
# fix permissions
fowners -R ${GIT_USER}:${GIT_USER} ${DATA_DIR} ${LOGS_DIR}
}
pkg_postinst() {
# check git home directory
local git_home=$(getent passwd ${GIT_USER} | cut -d: -f6)
if [ ! "${git_home}" -ef ${DATA_DIR} ]; then
ewarn "An authorized_keys is configured to be inside ${DATA_DIR}/.ssh,"
ewarn "but HOME of ${GIT_USER} user is located in ${git_home}. You must"
ewarn "either change authorized_keys location in ${CONF_FILE},"
ewarn "or change home directory of ${GIT_USER} user to ${DATA_DIR}."
ewarn
fi
local auth_dir="${git_home}/.ssh"
elog "Initializing authorized_keys file in ${auth_dir}"
mkdir -p ${auth_dir}
touch ${auth_dir}/authorized_keys
chmod -R u=rwX,go=- ${auth_dir}
chown -R ${GIT_USER}:${GIT_USER} ${auth_dir}
elog
elog "GitLab Shell was initialized. Repositories are located in"
elog "${DATA_DIR}/repositories, scripts in ${DEST_DIR}/bin."
elog "All gitlab-* scripts was symlinked to /usr/bin to be on your path."
elog
elog "You should change your gitlab_url in: ${CONF_FILE}."
}

View file

@ -0,0 +1 @@
EBUILD ankh-1.0.ebuild 1649 RMD160 cc1aa30ebf653b8ee20844afb77fe7cc708a3b15 SHA1 d292b1f221731de16f1df825406da95ea2ffbdd5 SHA256 d83a089fbebe2b32f2353d67f790e176c8fee4c467b5412badf5baf13e3d583b

View file

@ -0,0 +1,59 @@
inherit eutils games
DESCRIPTION="Ankh a Adventure like Monkey Island"
HOMEPAGE="http://www.ankh-game.de/ankh.html"
LICENSE="Runesoft"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RESTRICT="strip"
DEPEND="app-arch/bzip2
app-arch/tar
app-arch/unzip"
RDEPEND="sys-libs/glibc
virtual/opengl
x11-libs/libXext
x11-libs/libX11
x11-libs/libXau
x11-libs/libXdmcp
amd64? ( app-emulation/emul-linux-x86-xlibs
app-emulation/emul-linux-x86-soundlibs
|| (
>=app-emulation/emul-linux-x86-xlibs-7.0
x11-drivers/nvidia-drivers
x11-drivers/nvidia-legacy-drivers
>=x11-drivers/ati-drivers-8.8.25-r1 ) )"
S=${WORKDIR}
GAMES_CHECK_LICENSE="no"
dir=${GAMES_PREFIX_OPT}/ankh
Ddir=${D}/${dir}
src_install() {
cdrom_get_cds data/Ankh.tar.gz
insinto "${dir}"
exeinto "${dir}"
einfo "Unpacking common.zip from Disk..."
unzip -qo ${CDROM_ROOT}/data/common.zip -d $Ddir
einfo "Unpacking bin-x86.tar.gz from Disk..."
tar xzf ${CDROM_ROOT}/data/bin-x86.tar.gz -C $Ddir
einfo "Unpacking libs-x86.tar.gz from Disk..."
tar xzf ${CDROM_ROOT}/data/libs-x86.tar.gz -C $Ddir
einfo "Unpacking Ankh.tar.gz from Disk..."
tar xzf ${CDROM_ROOT}/data/Ankh.tar.gz -C $Ddir
find ${Ddir} -exec touch '{}' \;
# Argh the Program saves the settings in his install dir :(
# so we have to set some dir to be writeable by the group
chmod g+w ${Ddir}/media/ # the settings are saved here
chmod g+w ${Ddir}/bin/release # the log-files are saved here
dosym ${dir}/Ankh /usr/games/bin/ankh
prepgamesdirs
make_desktop_entry ankh "Ankh" ${dir}/Ankh.xpm
}

11
trunk/layman.xml Normal file
View file

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<layman>
<overlay type="svn" src="https://svn.friedli.info/gentoo-overlay" name="fritteli" contact="manuel@friedli.info">
<link>
https://svn.friedli.info/listing.php?repname=Gentoo-Overlay
</link>
<description>
Fritteli's overlay of Gentoo ebuilds
</description>
</overlay>
</layman>

View file

@ -0,0 +1,3 @@
DIST andalus.zip 52912 RMD160 82ddeedac78acad8554ca200e70f1d79ba8a5dfe SHA1 a9adf46eee89994739ee5b1f41b47c28199a08c4 SHA256 defac8411a7e77a5b8345957a60d461eccbda386f59b3872ea1ab3c8bcd9e4fe
EBUILD andalus-1-r1.ebuild 703 RMD160 533b8921b61cf70f3a36dbc589c2e9434384e4ec SHA1 2448be5fc03e56e8fe4dd1145a391d598e569803 SHA256 e225d90a7228e88a0c88073cc52661fb358a07bfb23fdcc92706521dd015e4fa
EBUILD andalus-1.ebuild 702 RMD160 c3c9559a82bb4e0acbf82aae7a958a500a923d0c SHA1 5d309c7ae937a92de91c5788bb7a6b45cb771934 SHA256 b168c736533e24fd4fcc8119976dd5b7ccc25ee70e387468a5b943061b5c3d09

View file

@ -0,0 +1,33 @@
# Copyright 2011 Manuel Friedli <manuel@fritteli.ch>
# This ebuild is distributed under the terms of the GNU General Public License v2
# $Id$
inherit font
MY_PN="andalus"
MY_P="${MY_PN}"
S="${WORKDIR}"
DESCRIPTION="Andalus Truetype Font"
HOMEPAGE="http://www.fonts101.com/xt_fontdetails_az_FID!19125~Andalus~font.html"
SRC_URI="http://www.fonts101.com/andalus.zip"
LICENSE="Unknown"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch nomirror"
IUSE=""
DOCS="fonts101.txt"
FONT_SUFFIX="ttf"
FONT_S="${S}"
DEPEND="app-arch/unzip"
pkg_nofetch() {
einfo "Please download ${MY_P} from here:"
einfo "http://www.fonts101.com/xt_fontdetails_az_FID!19125~Andalus~font.html"
}
#src_unpack() {
# unzip $A
#}

View file

@ -0,0 +1,33 @@
# Copyright 2007 Manuel Friedli <manuel@fritteli.ch>
# This ebuild is distributed under the terms of the GNU General Public License v2
# $Header: $
inherit font
MY_PN="andalus"
MY_P="${MY_PN}"
S="${WORKDIR}"
DESCRIPTION="Andalus Truetype Font"
HOMEPAGE="http://www.fonts101.com/xt_fontdetails_az_FID!19125~Andalus~font.html"
SRC_URI="http://www.fonts101.com/andalus.zip"
LICENSE="Unknown"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="fetch nomirror"
IUSE=""
DOCS="fonts101.txt"
FONT_SUFFIX="ttf"
FONT_S="${S}"
DEPEND="app-arch/unzip"
pkg_nofetch() {
einfo "Please download ${MY_P} from here:"
einfo "http://www.fonts101.com/xt_fontdetails_az_FID!19125~Andalus~font.html"
}
#src_unpack() {
# unzip $A
#}

View file

@ -0,0 +1,3 @@
DIST Snowflake-Letters.zip 142677 RMD160 e5fafec5ac4766bba4d118f4d0a0d50cc2b8d275 SHA1 63a40c55fb91ee4ab6daf74bf21be15e19a10188 SHA256 dfbe1aaeae3b02c534bae555e988d2d872aca8868a30688329401530b2db92e2
EBUILD snowflake-letters-1-r1.ebuild 684 RMD160 01a61894ecd897d1656cbb574675cd1f35c3c61a SHA1 37b9af724ed396584057ccef06f98e531e3ee169 SHA256 4ee4b3fe5abd639bdb14fefc5b5b95ad88f4381990c7efac7650f44ba9b6fe57
EBUILD snowflake-letters-1.ebuild 677 RMD160 4a23f7b764f8e414b95ff7b6beec8322c75a5002 SHA1 f35fe45300bfc5e91af225a6d71b96de0b05b6ae SHA256 763cde72f4cc296702fcced881c52e05cc51ce3616ed63384b3e0661733ebe24

View file

@ -0,0 +1,28 @@
# Copyright 2008 Manuel Friedli <manuel@fritteli.ch>
# This ebuild is distributed under the terms of the GNU General Public License v2
# $Header: $
inherit font
MY_PN="Snowflake-Letters"
MY_P="${MY_PN}"
S="${WORKDIR}"
DESCRIPTION="Snowflake Letters Truetype Font"
HOMEPAGE="http://www.fontstock.net/9746/Snowflake-Letters.html"
SRC_URI="http://www.fontstock.net/font/9746/Snowflake-Letters.zip"
LICENSE="Unknown"
SLOT="0"
KEYWORDS="~x86 ~amd64"
RESTRICT="fetch nomirror"
IUSE=""
DOCS="fonts101.txt"
FONT_SUFFIX="ttf"
FONT_S="${S}"
DEPEND="app-arch/unzip"
pkg_nofetch() {
einfo "Please download ${MY_P} from here:"
einfo "http://www.fontstock.net/9746/Snowflake-Letters.html"
}

View file

@ -0,0 +1,28 @@
# Copyright 2008 Manuel Friedli <manuel@fritteli.ch>
# This ebuild is distributed under the terms of the GNU General Public License v2
# $Header: $
inherit font
MY_PN="Snowflake-Letters"
MY_P="${MY_PN}"
S="${WORKDIR}"
DESCRIPTION="Snowflake Letters Truetype Font"
HOMEPAGE="http://www.fontstock.net/9746/Snowflake-Letters.html"
SRC_URI="http://www.fontstock.net/font/9746/Snowflake-Letters.zip"
LICENSE="Unknown"
SLOT="0"
KEYWORDS="~x86"
RESTRICT="fetch nomirror"
IUSE=""
DOCS="fonts101.txt"
FONT_SUFFIX="ttf"
FONT_S="${S}"
DEPEND="app-arch/unzip"
pkg_nofetch() {
einfo "Please download ${MY_P} from here:"
einfo "http://www.fontstock.net/9746/Snowflake-Letters.html"
}

View file

@ -0,0 +1 @@
masters = gentoo

View file

@ -0,0 +1,5 @@
AUX palaver-confd 69 SHA256 5c838254d31931fed4ede315b5c661a24af2e616b78b46a36141d7f88baf8dfc SHA512 af0c67ada1f0f69d799af96c869838ec08d54c85732d23d4fb3c88fc83d10c8593b40670bef0a7ec1910cf59d1e6f64b0d1b91bc154c58cf16a99ec3ad8ededf WHIRLPOOL 555574d673c0f7d6415fd8b2d5f43aead3c699a5a9927cf6280ef4e90ee01662b33631a98073ba3c6888e8a21abf4d65d9b2fe13f76b735190ec416a381a897c
AUX palaver-initd 650 SHA256 3db70d01fc2958858a08b1f7fb26af56aedc28e2d1c99f5cd1bcade4edb9c6c4 SHA512 18c955d68aeff2d527f58c2afebe0f2e823b178fe046085148c37fc4750e2d4067e3eb3be3ccc16f9ef309c66ab9ae3de97091e08453346069e871bff9d42f03 WHIRLPOOL d983725daf62d1e37577bd926c92140ac03f36cdeaef80f35d589df1229eced127cd67a0737168883c8a914c631b7f6e4744da8ea384c5776976bfa409a779dc
AUX palaver.conf 116 SHA256 4c532034298f197a7810463d9f0a850e8118b96f50efd850f65097c017622d9f SHA512 f34536040a13bce8e419559b59058d930ae851917fedb150b3c9c4315f7946be9ca56af28841fa86ee1b3252b98eadcb01d3bb87a73e77917d59646fbb6871f2 WHIRLPOOL 26a61f877c6dbf6dc08f39dc0164c1672a4b050073ecb99b3b331ff7152fee4ff198ec4faf829018870a2022ebcf8e03eed9b1b8a02d47d032284741978d0c33
AUX palaver_plugin.py 1222 SHA256 f9e81c27fb210799739ed36964b203a3ebde15584f9499d965db20e63eeeddf0 SHA512 5957e52274f38d82f3c897b24b8588eeb6a93eb9a04c2a421e9f95eab1a451da4bf1b944f19914163c9e925eaf37fb9fe6b332866859c22df40216d447a505ce WHIRLPOOL 9cf4778eaf45c556456c79764bc630d268fd0e2dbcb189d4af88b5664aeae0b3e91ee0af98e9666c9b160e454456fc7781e0bacd33dd7dcc0f40ff4d6d1ad427
EBUILD palaver-9999.ebuild 1309 SHA256 377d78c73303b1cec9ff7e694f5b398f4d4911865c1a2d7c9861ea408e18074b SHA512 b61b625d5296b2fde56239ad8112d0d1800388a0fe93dcbdd2cc0f11271d45d0c379838fb7843dbfb6139dd3bb28fbf69ff0cbf9236ab1423b94324cd6cb3d75 WHIRLPOOL 1e7312070a9d9b4b978fc14dfa9e84115cbdfde3b233dd97b7205f13b120fb6f40fe8de219706fa4123eb831aa81bbac556f1b8e6a453d1c2875e2f7adcd460c

View file

@ -0,0 +1,2 @@
# location of the configuration file
CONFIG=/etc/jabber/palaver.conf

View file

@ -0,0 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
use jabber-server
}
start() {
ebegin "Starting Palaver MUC service"
source ${CONFIG}
start-stop-daemon --start --pidfile /var/run/jabber/palaver.pid -u jabber -g jabber \
--exec /usr/bin/twistd -- -l $LOG/palaver.log --pidfile /var/run/jabber/palaver.pid \
palaver --jid=$JID --rhost=$RHOST --rport=$RPORT --secret=$SECRET --spool=$SPOOL
eend $?
}
stop() {
ebegin "Stopping Palaver MUC service"
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/palaver.pid
eend $?
}

View file

@ -0,0 +1,6 @@
JID=conference.example.com
RHOST=localhost
RPORT=5347
SECRET=password
SPOOL=/var/spool/jabber/
LOG=/var/log/jabber/

View file

@ -0,0 +1,41 @@
from zope.interface import implements
from twisted.python import usage
from twisted.plugin import IPlugin
from twisted.application.service import IServiceMaker
# Due to the directory layout, and the fact that plugin directories aren't
# modules (no __init__.py), this file is named something other than palaver.py,
# to ensure that this import pulls in the right module.
import palaver
class Options(usage.Options):
optParameters = [
('jid', None, None),
('rhost', None, None),
('rport', None, None),
('secret', None, None),
('backend', None, 'dir'),
('spool', None, None),
('admin', None, 1),
('create', None, 1),
('dbname', None, 'muc'),
('dbuser', None, 'muc'),
('dbhostname', None, None),
('log', 'l', './html/logs/'),
('config', 'c', 'config.xml'),
]
optFlags = [
('verbose', 'v', 'Show traffic'),
]
class ServiceFactory(object):
implements(IServiceMaker, IPlugin)
tapname = "palaver"
description = "A multi-user chat xmpp/jabber component."
options = Options
def makeService(self, options):
return palaver.makeService(options)
service = ServiceFactory()

View file

@ -0,0 +1,55 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit distutils eutils python git-2
DESCRIPTION="Multi-user chat component for jabber implemented in python"
HOMEPAGE="https://github.com/twonds/palaver"
EGIT_REPO_URI="git://github.com/twonds/palaver"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="net-im/jabber-base"
RDEPEND=">=dev-python/twisted-core-2.4.0
>=dev-python/twisted-words-0.5
${DEPEND}"
pkg_setup() {
python_set_active_version 2
}
src_prepare() {
cp ${FILESDIR}/palaver_plugin.py ${S}/twisted/plugins
rm ${S}/twisted/plugins/palaver.py
cd ${S}/palaver
mv palaver.py __init__.py
}
src_compile() {
# nothing to be done here?
distutils_src_compile
}
src_install() {
distutils_src_install
insinto /etc/jabber
newins "${FILESDIR}/"palaver.conf ${PN}.conf
fperms 600 /etc/jabber/${PN}.conf
fowners jabber:jabber /etc/jabber/${PN}.conf
# dosed \
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
# /etc/jabber/${PN}.xml
newinitd "${FILESDIR}/${PN}-initd" ${PN}
newconfd "${FILESDIR}/${PN}-confd" ${PN}
}
pkg_postinst() {
einfo "A sample config file has been installed into /etc/jabber/${PN}.conf."
einfo "Please adjust the settings as needed."
}

View file

@ -0,0 +1,3 @@
AUX punjab-confd 67 SHA256 2951827630ccbd793922d32f7f61416747c50ebb2cd542062f1dd82dc9ec94c7 SHA512 9784f2b70cc5830b44702ad74d5b18475fb081f5728ac346746b3f347a9a33771680752a29e42e13b9d2ce7eb983babe22486945b2be22dbfbff6078e8a837ba WHIRLPOOL cb64ecbcd7710d0a6f33ece9bb851a829a6e8c1a978235f7e96f882d69b63ab172a69e4c04c38adc07758fcf39fa0ebebf8f3a40821d7295746378d91d3f98dc
AUX punjab-initd 621 SHA256 4263b2f8a2abad5317d1555005ec7038478494fa450918e80f065a488ac80e04 SHA512 7e280ca57a8f091e96cc3ff62b9c74fefe858ca2c94ca0c981dfadd0a26c17d4989164acc8a8c1f6bfd734921b7a7307e89b54024c0ea62c32f0cd4bf8ce703a WHIRLPOOL abe9da6820c028a3d474f4c30d990edb5489cc2c261acac6a03fb8a2e450b872e471f91fefd23630f9c707abf91a66558b959df8ab4716a1e31e5adb42748851
EBUILD punjab-9999.ebuild 1171 SHA256 7031b97a29cce4a90d736fa2752272150f04edfa116f4d822f9db2cec0e8df42 SHA512 7ea1cfdbd80c4092b5bc87787a663d487c0fa08eec27ab0a481f3df8283bb192999e3b879b3875504c8415c26ba6ea3da5fd6d9eb2dea1947fbacd7dbb35c5fb WHIRLPOOL 9ae8059628fdd9a75db092694c47d022831ca632ecb17cd497b6bab469fba58f034b330d54deee9cd8bc03259092e854b6a8fe536a45768a4d51dccd7f2170fd

View file

@ -0,0 +1,2 @@
# location of the configuration file
CONFIG=/etc/jabber/punjab.xml

View file

@ -0,0 +1,24 @@
#!/sbin/runscript
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
depend() {
need net
use jabber-server
}
start() {
ebegin "Starting Punjab BOSH connection manager"
start-stop-daemon --start --pidfile /var/run/jabber/punjab.pid -u jabber -g jabber \
--exec /usr/bin/twistd -- -l /var/log/jabber/punjab.log --pidfile /var/run/jabber/punjab.pid \
-y /etc/jabber/punjab.tac
# -c ${CONFIG}
eend $?
}
stop() {
ebegin "Stopping Punjab BOSH connection manager"
start-stop-daemon --stop --quiet --pidfile /var/run/jabber/punjab.pid
eend $?
}

View file

@ -0,0 +1,50 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=3
PYTHON_DEPEND="2"
inherit distutils eutils python git-2
DESCRIPTION="BOSH connection manager for jabber implemented in python"
HOMEPAGE="https://github.com/twonds/punjab"
EGIT_REPO_URI="git://github.com/twonds/punjab"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="tls"
DEPEND="net-im/jabber-base"
RDEPEND=">=dev-python/twisted-core-11.1.0
>=dev-python/twisted-names-11.1.0
tls? ( dev-python/pyopenssl )
${DEPEND}"
pkg_setup() {
python_set_active_version 2
}
src_compile() {
# nothing to be done here?
distutils_src_compile
}
src_install() {
distutils_src_install
insinto /etc/jabber
newins punjab.tac ${PN}.tac
fperms 600 /etc/jabber/${PN}.tac
fowners jabber:jabber /etc/jabber/${PN}.tac
# dosed \
# "s:<spool>[^\<]*</spool>:<spool>/var/spool/jabber</spool>:" \
# /etc/jabber/${PN}.xml
newinitd "${FILESDIR}/${PN}-initd" ${PN}
# newconfd "${FILESDIR}/${PN}-confd" ${PN}
}
pkg_postinst() {
einfo "A sample config file has been installed into /etc/jabber/${PN}.tac."
einfo "Please adjust the settings as needed."
}

View file

@ -0,0 +1,33 @@
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
# XXX needed? (e.g. for epatch)
inherit eutils
DESCRIPTION="Scalix (Community Edition) - A replacement for Microsoft Exchange"
HOMEPAGE="http://www.scalix.com/community/"
SRC_URI=""
LICENSE="unknown"
SLOT="0"
KEYWORDS="~x86"
IUSE="installer mobile platform sac sis"
RESTRICT="fetch"
DEPEND=">=dev-lang/python-2.2
>=dev-java/ant-1.6.5"
RDEPEND="${DEPEND}"
#S="${WORKDIR}/${P}"
src_unpack() {
# unpack the main scalix-TGZ-file
# depending on USE-flags, unpack individual sub-TGZs
}
src_compile() {
# depending on USE-flags, change to corresonding sub directories
# installer: - run ant
# -
}
src_install() {
}

1
trunk/profiles/repo_name Normal file
View file

@ -0,0 +1 @@
fritteli

View file

@ -0,0 +1,2 @@
DIST garminplugin-0.3.20.tar.gz 162039 SHA256 6810d48cc2fc7ab6159f4abf63990ab09c6c2eebc5f5914459427639195111a7 SHA512 2158dce9b1e7bf846515930221dec27af67241d454fe4884ac4bea2cc104914b026716e1e5cc727ddf4b6a84e6ccf5047ebafafb6e35b659fd133b4b04f48cf8 WHIRLPOOL 915a7cffc77c51720811fa3f3d50e7192245cc16095999ac54958dcc176e7156fcca73d4685b09a0c0eeb1a53301aefb5eb6ccb0463bd9ce281169b5646ff560
EBUILD garminplugin-0.3.20.ebuild 949 SHA256 87c18419e428965924ddcdfbd69e258abc97ac853b6ccd52bf88f70934ad9c31 SHA512 c2c8ce3fb1259f32f9bd58f1d0952cb1f2ee34c33a64c15dc0011d1c2f404b4dd5168396c93cfefeca9a3ddd17487c9f215db12130a1fa4143a519a01a259ef0 WHIRLPOOL 218c4844df695a5f5edcf4f530991aca5c8e2767875e5a662d87439f50c1c0f84ad4be3e708e15c029b101ce0db73403265e2f3983b9c303185118d162a0b9f9

View file

@ -0,0 +1,43 @@
# Copyright 2011 Christian Wasserthal
# Distributed under the terms of the GNU General Public License v2
EAPI="2"
inherit eutils
DESCRIPTION="A free replacement for the Garmin browser plugin"
HOMEPAGE="http://www.andreas-diesner.de/garminplugin/"
SRC_URI="http://github.com/adiesner/GarminPlugin/tarball/V${PV} -> ${P}.tar.gz"
MY_S="adiesner-GarminPlugin-ee0849f"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~x86 amd64"
RDEPEND="sci-geosciences/garmintools
sci-geosciences/gpsbabel
dev-libs/tinyxml[stl]
dev-libs/libusb"
DEPEND="${RDEPEND}"
#src_unpack(){
# tar -zxf "${DISTDIR}/${A}" || die "unpack failed"
#}
src_configure() {
cd "${MY_S}/src" || die "barf"
econf || die "econf failed"
}
src_compile() {
cd "${MY_S}/src" || die "barf"
emake || die "emake failed"
}
src_install() {
mkdir -p "${D}/usr/lib/nsbrowser/plugins" || die "mkdir failed"
cp "${MY_S}/src/npGarminPlugin.so" "${D}/usr/lib/nsbrowser/plugins/" || die "cp failed"
}

View file

@ -0,0 +1,3 @@
AUX garmintools-0.10-add-xml-root.patch 419 SHA256 58802fbddf121cc9c2236fac5220895248854e438bee2e43a35b2129ffa7f7a2 SHA512 b61dd12999686905869ad3e32324b3f246fda685d79f4e867b4f10c125a89cca105d295b62f6181099b9f014b3c1f97b2a4a5753fb6688842553d83c129b984d WHIRLPOOL 94a6cdfed71066f580925bce4eccd7615364bc9ee836d286f2f7299ea51f9325de9141cd102f6f26d2be65a459c0d480e692509881bb1496278c6ff8a1bd8d53
DIST garmintools-0.10.tar.gz 396659 SHA256 ffd50b7f963fa9b8ded3223c4786b07906c887ed900de64581a24ff201444cee
EBUILD garmintools-0.10.ebuild 862 SHA256 784ca6e59aa7ea83b43f120e5e46fc95db0e87e93ce2c1b38fb3d1349edf52c6 SHA512 91e5613e7dd0384109bae17e460f3ead3ebfe2c60547a5ce56232b843160aadc65e28f1462bbbf8bda92110092ae87f20ac00d9ce02f30c8eefe17b3ee231a15 WHIRLPOOL 80ac5fb32ad78dd2a03ccfef2350f96941f8a5065d982f2f624d5faf4a940998bf62e7ca074cd8d39571efb97350ffd32e0b8325653557904722f710ca5df623

View file

@ -0,0 +1,17 @@
--- src/garmin_dump.c~ 2007-07-20 13:59:04.000000000 -0400
+++ src/garmin_dump.c 2007-08-27 21:02:04.000000000 -0400
@@ -9,12 +9,14 @@
garmin_data * data;
int i;
+ printf("<data>\n");
for ( i = 1; i < argc; i++ ) {
if ( (data = garmin_load(argv[i])) != NULL ) {
garmin_print_data(data,stdout,0);
garmin_free_data(data);
}
}
+ printf("</data>\n");
return 0;
}

View file

@ -0,0 +1,43 @@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gpsbabel/gpsbabel-1.3.3.ebuild,v 1.3 2007/07/18 02:02:04 cryos Exp $
inherit eutils
DESCRIPTION="A Linux interface to the Garmin Forerunner GPS units"
HOMEPAGE="http://code.google.com/p/garmintools/"
SRC_URI="http://${PN}.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 amd64"
IUSE="usb"
RDEPEND="usb? ( dev-libs/libusb )"
DEPEND="${RDEPEND}"
src_unpack(){
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${PF}-add-xml-root.patch || die "Unable to apply ${PF}-add-xml-root.patch"
}
src_compile() {
local myconf="";
econf ${myconf}
emake || die "emake failed"
}
src_install() {
cd "${S}"
make DESTDIR="${D}" install || die "Install failed"
}
#pkg_postinst(){
#}

View file

@ -0,0 +1,7 @@
AUX gitlab-sidekiq.init 979 SHA256 f9bc02031b0418e4c765fae37bb40cd9e16dbe5b1a7f5c105a2d7ba3568b0195 SHA512 e3311f1110fca02a378a9f74704d9241884a1973e90be1dbd663809b524528eda25e3ad0ac5d20737f6ccd78343582557ac579adb976473f8aabc0320172921f WHIRLPOOL 365d539cceacb5ff9171aa7316ac061ef4b4a8d63e6d4a26395afb841878a08bdd1b9bf2709602dc90f15a1ed5ff8566a0e8239e8ab9184e84814a16993f3aeb
AUX gitlab-unicorn-6.init 1663 SHA256 ba211c63d559cbca510483d5536d28131e08f67dc8914444a2c85b27c7a92b60 SHA512 a574b3bb5b9af3e3a707045ac6d783bab73bab1db033d07999b3d06789da0853bc3de0bba39a3c154e5b1ab385926ee3ec4487f4c797708a318fa5df22827069 WHIRLPOOL 497cf52ebb4b33cc6bbd81e53d4961878b2ea9dc42bacabf7a32686e52a54c22eed73836705e80714d7b759cfd2ee1929e6aa12083435f265c472270e158f72a
AUX gitlabhq-6.4.3-fix-gemfile.patch 2168 SHA256 dafa8390b1b3421d174a4f3f4e1f4fcb65be4c972aae89c4cc0f61c8492a136c SHA512 123a8f2d893159f7da235a3b7c8913686bace04eb36dbee110ebddbfbc2c4a166338e41a030f86d4b5ae7e86fdb367035b3612e62a668e365ecde1ce2e16c39a WHIRLPOOL 2ee7c88d42273d1547cdb1f27c1fe550fe29003d5f308c61d57457723658675b7cfd91fdd37a095a30810e3e55cadc1ba1b080b679875ee4bf618fd563d8dfcc
AUX gitlabhq-6.4.3-fix-project-name-regex.patch 1143 SHA256 6f12268ae65ea0fbb80a8eed0740f7270d22d2b17f7768d5d2f0feddf38301ea SHA512 3d70766c0cb0fda5f57235424633d507f30005edbf569b03af99965e26d758e7ecd3669f20c7f06350b277529f5be63e99814eed5ac74eacaec5a1f85199a25f WHIRLPOOL d2acb2ea30f44166e6164913d7345366ed9ff5646832240c6287745c1c86915b5661eaea68a3d842a363fff8301a4bcdaf71563d1c768d30c163fd396757f833
AUX gitlabhq-6.4.3-fix-sendmail-config.patch 731 SHA256 51f0d0af2a7c048d7cff56cf27955632f340ca67f9d460af840cf34ed60ca574 SHA512 b10d5b8d89927404d25345e17ba37ca4e7848b04c2ca20c5eef14eaac43d9ba14b62ae4c0d532eefaf6f9a2944578e84eb65a3420335d32495855c4807eec356 WHIRLPOOL 66f6443f311f2355ffd4efaea914f462816a1966a715b3b5ffaaa26b41bdced928b9905b8606f06fac3c2ccf20741553cfed2615430287bede01cf376aae2a60
DIST gitlabhq-6.4.3.tar.gz 10979694 SHA256 a2df6ec3de927a45fdaec70b806f731d66694db54dc674cd8b3378703d28114b SHA512 df06c07434ca45273e4988827d11a287249f2f3baddd799c45fafc56661ba4e1d872536f233eac7ac5aa704ddae0bcc92850af926a07f42f399873e1eda4e8f7 WHIRLPOOL 33e6199f2955fcbe65177c4f0520ceeaed82b9c1df94721048eeb8cefc798b9c83beb66f8ddec3cc91a848ba056f39e633ffba2f588880828bcae4a52d560dbc
EBUILD gitlabhq-6.4.3.ebuild 10673 SHA256 6856eeb5a2e778bc80237443fc997efd93c1ff60eda1ce6319a88298012c7eaf SHA512 130eb1b15eab517a5b80acfb51b888b4eb7fbe335c037df41b74dddd4f3d9d93f55aa0adb893b54f8f1e4e4f950fbcc278d2a5f142d76bea8535f78fd2f1f9d6 WHIRLPOOL 9531f4978c72c4a172c2fa6dd790c37e285169d2763e5d9da5b97755c4a9cb9710e45ff745ab4540873cbf7d591e538b14ebf1eb54469c57742f3c0935a976eb

View file

@ -0,0 +1,43 @@
#!/sbin/runscript
name="GitLab Sidekiq"
description="Sidekiq for GitLab @SLOT@"
: ${gitlab_user:=@USER@}
: ${gitlab_base:="@GITLAB_BASE@"}
: ${rails_env:=production}
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
: ${sidekiq_queues:="@QUEUES@"}
sidekiq_command="/usr/bin/bundle"
sidekiq_command_args="exec sidekiq -q ${sidekiq_queues} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
depend() {
need redis
use net
}
start() {
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
ebegin "Starting ${name} - Sidekiq"
start-stop-daemon --start \
--background --quiet \
--chdir "${gitlab_base}" \
--user=${gitlab_user} \
--pidfile="${sidekiq_pidfile}" \
--env RAILS_ENV=${rails_env} \
--exec ${sidekiq_command} -- ${sidekiq_command_args}
eend $?
}
stop() {
ebegin "Stopping ${name} - Sidekiq"
start-stop-daemon --stop \
--pidfile=${sidekiq_pidfile} \
--exec ${sidekiq_command}
eend $?
}

View file

@ -0,0 +1,67 @@
#!/sbin/runscript
name="GitLab-@SLOT@"
description="GitLab @SLOT@ on Unicorns"
: ${gitlab_user:=@USER@}
: ${gitlab_base:="@GITLAB_BASE@"}
: ${rails_env:=production}
: ${server_pidfile:="/run/gitlab/unicorn.pid"}
: ${sidekiq_pidfile:="/run/gitlab/sidekiq.pid"}
: ${sidekiq_logfile:="@LOGS_DIR@/sidekiq.log"}
: ${sidekiq_queues:="@QUEUES@"}
server_command="/usr/bin/bundle"
server_command_args="exec unicorn_rails -c ${gitlab_base}/config/unicorn.rb -E ${rails_env} -D"
sidekiq_command="/usr/bin/bundle"
sidekiq_command_args="exec sidekiq -q ${sidekiq_queues} -P ${sidekiq_pidfile} -L ${sidekiq_logfile}"
depend() {
provide gitlab
need redis
use net
}
start() {
ebegin "Starting ${name} - Unicorn servers"
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${server_pidfile}")"
checkpath -d -o ${gitlab_user} -m755 "$(dirname "${sidekiq_pidfile}")"
start-stop-daemon --start \
--chdir "${gitlab_base}" \
--user=${gitlab_user} \
--pidfile="${server_pidfile}" \
--env RAILS_ENV=${rails_env} \
--exec ${server_command} -- ${server_command_args}
eend $?
ebegin "Starting ${name} - Sidekiq"
start-stop-daemon --start \
--background --quiet \
--chdir "${gitlab_base}" \
--user=${gitlab_user} \
--pidfile="${sidekiq_pidfile}" \
--env RAILS_ENV=${rails_env} \
--exec ${sidekiq_command} -- ${sidekiq_command_args}
eend $?
}
stop() {
ebegin "Stopping ${name} - Sidekiq"
start-stop-daemon --stop \
--pidfile=${sidekiq_pidfile} \
--exec ${sidekiq_command}
eend $?
ebegin "Stopping ${name} - Unicorn servers"
start-stop-daemon --stop \
--signal QUIT \
--pidfile=${server_pidfile} \
--exec ${server_command}
eend $?
}

View file

@ -0,0 +1,84 @@
--- Gemfile.orig 2014-01-17 17:27:47.960000000 +0100
+++ Gemfile 2014-01-17 17:28:20.620000000 +0100
@@ -134,13 +134,16 @@
# Sanitize user input
gem "sanitize"
+# The newer revision of charlock_holmes that is finally fixed to
+# be compatible with Gentoo
+gem "charlock_holmes", git: "https://github.com/brianmario/charlock_holmes.git", ref: "dde194609b3513b0d2369ce8f916ae52566154b4"
+
# Protect against bruteforcing
gem "rack-attack"
gem "sass-rails"
gem "coffee-rails"
gem "uglifier"
-gem "therubyracer"
gem 'turbolinks'
gem 'jquery-turbolinks'
--- Gemfile.lock.orig 2014-01-17 17:29:53.490000000 +0100
+++ Gemfile.lock 2014-01-17 17:33:01.660000000 +0100
@@ -1,4 +1,11 @@
GIT
+ remote: https://github.com/brianmario/charlock_holmes.git
+ revision: dde194609b3513b0d2369ce8f916ae52566154b4
+ ref: dde194609b3513b0d2369ce8f916ae52566154b4
+ specs:
+ charlock_holmes (0.6.9.4)
+
+GIT
remote: https://github.com/gitlabhq/gon.git
revision: 58ca8e17273051cb370182cabd3602d1da6783ab
ref: 58ca8e17273051cb370182cabd3602d1da6783ab
@@ -72,7 +79,6 @@
json (>= 1.7)
celluloid (0.15.2)
timers (~> 1.1.0)
- charlock_holmes (0.6.9.4)
chosen-rails (1.0.1)
coffee-rails (>= 3.2)
compass-rails (>= 1.0)
@@ -278,7 +284,6 @@
addressable (~> 2.3)
letter_opener (1.1.2)
launchy (~> 2.2)
- libv8 (3.16.14.3)
listen (2.3.1)
celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3)
@@ -412,7 +417,6 @@
redis-store (~> 1.1.0)
redis-store (1.1.4)
redis (>= 2.2)
- ref (1.0.5)
require_all (1.3.2)
rest-client (1.6.7)
mime-types (>= 1.16)
@@ -499,9 +503,6 @@
term-ansicolor (1.2.2)
tins (~> 0.8)
test_after_commit (0.2.2)
- therubyracer (0.12.0)
- libv8 (~> 3.16.14.0)
- ref
thin (1.6.1)
daemons (>= 1.0.9)
eventmachine (>= 1.0.0)
@@ -572,6 +573,7 @@
bootstrap-sass (~> 2.3)
capybara
carrierwave
+ charlock_holmes!
chosen-rails (= 1.0.1)
coffee-rails
colored
@@ -655,7 +657,6 @@
stamp
state_machine
test_after_commit
- therubyracer
thin
tinder (~> 1.9.2)
turbolinks

View file

@ -0,0 +1,28 @@
--- lib/gitlab/regex.rb.orig 2013-12-23 19:43:59.000000000 +0100
+++ lib/gitlab/regex.rb 2014-01-17 17:43:00.020000000 +0100
@@ -1,3 +1,5 @@
+# encoding: utf-8
+
module Gitlab
module Regex
extend self
@@ -7,7 +9,7 @@
end
def project_name_regex
- /\A[a-zA-Z0-9][a-zA-Z0-9_\-\. ]*\z/
+ /\A\p{Word}[\p{Word}\-:\. ]*\z/
end
def name_regex
--- app/models/project.rb.orig 2014-01-17 17:40:02.050000000 +0100
+++ app/models/project.rb 2014-01-17 17:44:09.150000000 +0100
@@ -85,7 +85,7 @@
validates :description, length: { maximum: 2000 }, allow_blank: true
validates :name, presence: true, length: { within: 0..255 },
format: { with: Gitlab::Regex.project_name_regex,
- message: "only letters, digits, spaces & '_' '-' '.' allowed. Letter or digit should be first" }
+ message: "only letters, digits, spaces & '_' '-' '.' ':' allowed. Letter or digit should be first" }
validates :path, presence: true, length: { within: 0..255 },
exclusion: { in: Gitlab::Blacklist.path },
format: { with: Gitlab::Regex.path_regex,

View file

@ -0,0 +1,20 @@
diff --git a/config/environments/production.rb b/gitlab-6/environments/production.rb
index 82eb250..10e25e5 100644
--- a/config/environments/production.rb
+++ b/config/environments/production.rb
@@ -73,11 +73,10 @@ Gitlab::Application.configure do
# config.active_record.auto_explain_threshold_in_seconds = 0.5
config.action_mailer.delivery_method = :sendmail
- # Defaults to:
- # # config.action_mailer.sendmail_settings = {
- # # location: '/usr/sbin/sendmail',
- # # arguments: '-i -t'
- # # }
+ config.action_mailer.sendmail_settings = {
+ location: '/usr/sbin/sendmail',
+ arguments: '-i'
+ }
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true
end

View file

@ -0,0 +1,364 @@
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="5"
# Mainteiner notes:
# - This ebuild uses Bundler to download and install all gems in deployment mode
# (i.e. into isolated directory inside application). That's not Gentoo way how
# it should be done, but GitLab has too many dependencies that it will be too
# difficult to maintain them via ebuilds.
#
USE_RUBY="ruby19 ruby20"
PYTHON_DEPEND="2:2.7"
inherit eutils python ruby-ng
DESCRIPTION="GitLab is a free project and repository management application"
HOMEPAGE="https://github.com/gitlabhq/gitlabhq"
SRC_URI="https://github.com/gitlabhq/gitlabhq/archive/v${PV}.tar.gz -> ${P}.tar.gz"
RESTRICT="mirror"
LICENSE="MIT"
SLOT="6"
KEYWORDS="~amd64 ~x86"
IUSE="mysql +postgres +unicorn"
## Gems dependencies:
# charlock_holmes dev-libs/icu
# grape, capybara dev-libs/libxml2, dev-libs/libxslt
# json dev-util/ragel
# pygments.rb python 2.7+
# execjs net-libs/nodejs, or any other JS runtime
# pg dev-db/postgresql-base
# mysql virtual/mysql
#
GEMS_DEPEND="
dev-libs/icu
dev-libs/libxml2
dev-libs/libxslt
dev-util/ragel
net-libs/nodejs
postgres? ( dev-db/postgresql-base )
mysql? ( virtual/mysql )"
DEPEND="${GEMS_DEPEND}
>=dev-vcs/gitlab-shell-1.8
dev-vcs/git"
RDEPEND="${DEPEND}
dev-db/redis
virtual/mta"
ruby_add_bdepend "
virtual/rubygems
>=dev-ruby/bundler-1.0"
#
# fix-gemfile:
# Remove therubyracer that doesn't compile well on Gentoo (we're using
# nodejs instead that is faster and better). Also replace broken
# charlock_holmes version with fixed one.
#
# fix-project-name-regex:
# Allow project name to contain non-ASCII characters.
#
# fix-sendmail-config:
# Fix default settings to work with ssmtp that doesn't know '-t' argument.
#
RUBY_PATCHES=(
"${P}-fix-gemfile.patch"
"${P}-fix-project-name-regex.patch"
"${P}-fix-sendmail-config.patch"
)
MY_NAME="gitlab"
MY_USER="git" # should be same as in gitlab-shell
DEST_DIR="/opt/${MY_NAME}-${SLOT}"
CONF_DIR="/etc/${MY_NAME}-${SLOT}"
LOGS_DIR="/var/log/${MY_NAME}"
TEMP_DIR="/var/tmp/${MY_NAME}"
# When updating ebuild to newer version, check list of the queues in
# https://github.com/gitlabhq/gitlabhq/blob/${PV}/lib/tasks/sidekiq.rake
# TODO fritteli: I don't know what to look for in that file ... so I left this unchanged from gitlabhq-6.0.2-r2.ebuild
SIDEKIQ_QUEUES="post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default"
all_ruby_prepare() {
# fix paths
local satellites_path="${TEMP_DIR}/repo_satellites"
local repos_path=/var/lib/git/repositories
local hooks_path=/usr/share/gitlab-shell/hooks
sed -i -E \
-e "/satellites:$/,/\w:$/ s|(\s*path:\s).*|\1${satellites_path}/|" \
-e "/gitlab_shell:$/,/\w:$/ s|(\s*repos_path:\s).*|\1${repos_path}/|" \
-e "/gitlab_shell:$/,/\w:$/ s|(\s*hooks_path:\s).*|\1${hooks_path}/|" \
config/gitlab.yml.example || die "failed to filter gitlab.yml.example"
local run_path=/run/${MY_NAME}
sed -i -E \
-e "s|/home/git/gitlab/tmp/(pids\|sockets)|${run_path}|" \
-e "s|/home/git/gitlab/log|${LOGS_DIR}|" \
-e "s|/home/git/gitlab|${DEST_DIR}|" \
config/unicorn.rb.example || die "failed to filter unicorn.rb.example"
sed -i \
-e "s|/home/git/gitlab/tmp/sockets|${run_path}|" \
lib/support/nginx/gitlab || die "failed to filter nginx/gitlab"
# modify default database settings for PostgreSQL
sed -i -E \
-e 's|(username:).*|\1 gitlab|' \
-e 's|(password:).*|\1 gitlab|' \
-e 's|(socket:).*|/run/postgresql/.s.PGSQL.5432|' \
config/database.yml.postgresql \
|| die "failed to filter database.yml.postgresql"
# rename config files
mv config/gitlab.yml.example config/gitlab.yml
mv config/unicorn.rb.example config/unicorn.rb
local dbconf=config/database.yml
if use postgres && ! use mysql; then
mv ${dbconf}.postgresql ${dbconf}
rm ${dbconf}.mysql
elif use mysql && ! use postgres; then
mv ${dbconf}.mysql ${dbconf}
rm ${dbconf}.postgresql
fi
# remove zzet's stupid migration which expetcs that users are so foolish
# to run GitLab with PostgreSQL's superuser...
rm db/migrate/20121009205010_postgres_create_integer_cast.rb
# remove useless files
rm -r lib/support/{deploy,init.d}
use unicorn || rm config/unicorn.rb
}
all_ruby_install() {
local dest=${DEST_DIR}
local conf=${CONF_DIR}
local logs=${LOGS_DIR}
local temp=${TEMP_DIR}
# prepare directories
diropts -m750
dodir ${logs} ${temp} ${temp}/repo_satellites
diropts -m755
dodir ${conf} ${dest}/public/uploads
dosym ${temp} ${dest}/tmp
dosym ${logs} ${dest}/log
# install configs
insinto ${conf}
doins -r config/*
dosym ${conf} ${dest}/config
echo 'export RAILS_ENV=production' > "${D}/${dest}/.profile"
# remove needless dirs
rm -Rf config tmp log
# install the rest files
insinto ${dest}
doins -r ./
# install logrotate config
dodir /etc/logrotate.d
cat > "${D}/etc/logrotate.d/${MY_NAME}" <<-EOF
${logs}/*.log {
missingok
delaycompress
compress
copytruncate
}
EOF
## Install gems via bundler ##
cd "${D}/${dest}"
local without="development test aws"
local flag; for flag in mysql postgres unicorn; do
without+="$(use $flag || echo ' '$flag)"
done
local bundle_args="--deployment ${without:+--without ${without}}"
einfo "Running bundle install ${bundle_args} ..."
${RUBY} /usr/bin/bundle install ${bundle_args} || die "bundler failed"
# clean gems cache
rm -Rf vendor/bundle/ruby/*/cache
# fix permissions
fowners -R ${MY_USER}:${MY_USER} ${dest} ${temp} ${logs}
fperms +x script/{rails,check}
## RC script ##
local rcscript=gitlab-sidekiq.init
use unicorn && rcscript=gitlab-unicorn-6.init
cp "${FILESDIR}/${rcscript}" "${T}" || die
sed -i \
-e "s|@USER@|${MY_USER}|" \
-e "s|@SLOT@|${SLOT}|" \
-e "s|@GITLAB_BASE@|${dest}|" \
-e "s|@LOGS_DIR@|${logs}|" \
-e "s|@QUEUES@|${SIDEKIQ_QUEUES}|" \
"${T}/${rcscript}" \
|| die "failed to filter ${rcscript}"
newinitd "${T}/${rcscript}" "${MY_NAME}-${SLOT}"
}
pkg_postinst() {
elog
elog "1. Configure your GitLab's settings in ${CONF_DIR}/gitlab.yml."
elog
elog "2. Configure your database settings in ${CONF_DIR}/database.yml"
elog " for \"production\" environment."
elog
elog "3. Then you should create a database for your GitLab instance, if you"
elog "haven't done so already."
elog
if use postgres; then
elog "If you have local PostgreSQL running, just copy&run:"
elog " su postgres"
elog " psql -c \"CREATE ROLE gitlab PASSWORD 'gitlab' \\"
elog " NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN;\""
elog " createdb -E UTF-8 -O gitlab gitlabhq_production"
elog " Note: You should change your password to something more random..."
elog
fi
elog "4. Finally execute the following command to initlize environment:"
elog " emerge --config \"=${CATEGORY}/${PF}\""
elog " Note: Do not forget to start Redis server first!"
elog
elog "If this is an update from previous version, it's HIGHLY recommended"
elog "to backup your database before running the config phase!"
}
pkg_config() {
local shell_conf='/etc/gitlab-shell.yml'
einfo "Checking configuration files"
if [ ! -r "${CONF_DIR}/database.yml" ]; then
eerror "Copy ${CONF_DIR}/database.yml.* to"
eerror "${CONF_DIR}/database.yml and edit this file in order to configure your"
eerror "database settings for \"production\" environment."; die
fi
# check gitlab-shell configuration
if [ -r ${shell_conf} ]; then
local shell_repos_path="$(ryaml ${shell_conf} repos_path)"
local gitlab_repos_path="$(ryaml ${CONF_DIR}/gitlab.yml \
production gitlab_shell repos_path)"
if [ ! "${shell_repos_path}" -ef "${gitlab_repos_path}" ]; then
eerror "repos_path in ${CONF_DIR}/gitlab.yml and ${shell_conf}"
eerror "must points to the same location! Fix the repos_path location and"
eerror "run this again."; die
fi
else
ewarn "GitLab Shell checks skipped, could not find config file at"
ewarn "${shell_conf}. Make sure that you have gitlab-shell properly"
ewarn "installed and that repos_path is the same as in GitLab."
fi
local email_from="$(ryaml ${CONF_DIR}/gitlab.yml production gitlab email_from)"
local git_home=$(getent passwd ${MY_USER} | cut -d: -f6)
# configure Git global settings
if [ ! -e "${git_home}/.gitconfig" ]; then
einfo "Setting git user"
su -l ${MY_USER} -c "
git config --global user.email '${email_from}';
git config --global user.name 'GitLab'" \
|| die "failed to setup git name and email"
fi
if [ ! -d "${DEST_DIR}/.git" ]; then
# create dummy git repo as workaround for
# https://github.com/bundler/bundler/issues/2039
einfo "Initializing dummy git repository to avoid false errors from bundler"
su -l ${MY_USER} -c "
cd ${DEST_DIR}
git init
git add README.md
git commit -m 'Dummy repository'" >/dev/null
fi
## Initialize app ##
local RAILS_ENV="production"
local RUBY=${RUBY:-/usr/bin/ruby}
local BUNDLE="${RUBY} /usr/bin/bundle"
local dbname="$(ryaml ${CONF_DIR}/database.yml production database)"
local update=
while [ ! -n "${update}" ] ; do
echo
echo " Is this an update from previous version (fresh install otherwise)? (y/n)"
read answer
if [[ ${answer} =~ ^[Yy]([Ee][Ss])?$ ]]; then
update=true
elif [[ ${answer} =~ ^[Nn]([Oo])?$ ]]; then
update=false
else
echo "Answer not recognized"
fi
done
if [ "${update}" = 'true' ]; then
einfo "Migrating database ..."
exec_rake db:migrate
einfo "Cleaning old precompiled assets ..."
exec_rake assets:clean
einfo "Cleaning cache ..."
exec_rake cache:clear
# https://github.com/gitlabhq/gitlabhq/issues/5311#issuecomment-31656496
einfo "Migrating iids ..."
exec_rake migrate_iids
else
einfo "Initializing database ..."
exec_rake gitlab:setup
fi
einfo "Precompiling assests ..."
exec_rake assets:precompile
if [ "${update}" = 'true' ]; then
ewarn
ewarn "This configuration script runs only common migration tasks."
ewarn "Please read guides on"
ewarn " https://github.com/gitlabhq/gitlabhq/blob/master/doc/update/"
ewarn "for any additional migration tasks specific to your previous GitLab"
ewarn "version."
fi
}
ryaml() {
ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@"
}
exec_rake() {
local command="${BUNDLE} exec rake $@ RAILS_ENV=${RAILS_ENV}"
echo " ${command}"
su -l ${MY_USER} -c "
export LANG=en_US.UTF-8; export LC_ALL=en_US.UTF-8
cd ${DEST_DIR}
${command}" \
|| die "failed to run rake $@"
}