From 62afe503e2ae5ff7b96041dcdc45316a45755780 Mon Sep 17 00:00:00 2001 From: Martin Edenhofer Date: Wed, 7 Sep 2016 08:48:06 +0200 Subject: [PATCH] Removed not longer needed files. --- extras/zammad-von-wem-auch-immer.spec | 210 -------------------------- extras/zammad.spec | 94 ------------ extras/zammad_nginx.conf | 22 --- 3 files changed, 326 deletions(-) delete mode 100644 extras/zammad-von-wem-auch-immer.spec delete mode 100644 extras/zammad.spec delete mode 100644 extras/zammad_nginx.conf diff --git a/extras/zammad-von-wem-auch-immer.spec b/extras/zammad-von-wem-auch-immer.spec deleted file mode 100644 index 8c0232584..000000000 --- a/extras/zammad-von-wem-auch-immer.spec +++ /dev/null @@ -1,210 +0,0 @@ -Name: zammad -Version: 0.1 -Release: 1%{?dist} -Summary: Zammad Application -# Some of the gems compile, and thus this can't be noarch -BuildArch: x86_64 -Group: Application/Internet -License: AGPL -URL: https://github.com/martinie/zammmad -# XXX You'll have to create the logrotate script for your application -Source0: %{name}.logrotate -BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) - -# XXX Building this rpm requires that bundle is available on the path of the user -# that is running rpmbuild. But I'm not sure how to require that there is a -# bundle in the path. -#BuildRequires: /usr/bin/bundle -# XXX Also require gem on the PATH -# BuildRequires: /usr/bin/gem - -# XXX Note that you might not require all the below. It will depend on what your gems require to build. - -# From docs: http://nokogiri.org/tutorials/installing_nokogiri.html -# and: https://github.com/thoughtbot/capybara-webkit/wiki/Installing-QT -# which hinted that I should look for something like qt webkit devel ... -BuildRequires: libxml2 gcc ruby-devel libxml2-devel libxslt libxslt-devel -# for...I forgot to record what gem requires this to build... -BuildRequires: qt-devel qtwebkit-devel -# for curb -BuildRequires: libcurl-devel -# for sqlite3 -BuildRequires: sqlite-devel -# ^^ There may be more requirements above for building on a new dev/rpmbuild env - -# XXX Remove if not using apache/passenger/mysql -# Assuming will run via passenger + apache -Requires: mod_passenger, httpd -# And use mysql as the db -Requires: mysql-server - -# In order to rotate the logs -Requires: logrotate - -# What repository to pull the actual code from -# (assuming git here, you'll need to change for svn or hg) -%define git_repo git@github.com:martini/%{name}.git - -# -# DIRS -# - Trying to follow Linux file system hierarchy -# -%define appdir %{rails_home}/%{name} -%define docdir %{_docdir}/railsapps/%{name} -%define libdir %{_libdir}/railsapps/%{name} -%define logdir /var/log/railsapps/%{name} -%define configdir /etc/railsapps/%{name} -%define cachedir /var/cache/railsapps/%{name} -%define datadir /var/lib/railsapps/%{name} -%define logrotatedir /etc/logrotate.d/ - -%description -Some description of the application - -%prep -rm -rf ./%{name} -git clone %{git_repo} -pushd %{name} - git checkout v%{version} -popd - - -%build -pushd %{name} - - # Install all required gems into ./vendor/bundle using the handy bundle commmand - bundle install --deployment - - # Compile assets, this only has to be done once AFAIK, so in the RPM is fine - rm -rf ./public/assets/* - bundle exec rake assets:precompile - - # For some reason bundler doesn't install itself, this is probably right, - # but I guess it expects bundler to be on the server being deployed to - # already. But the rails-helloworld app crashes on passenger looking for - # bundler, so it would seem to me to be required. So, I used gem to install - # bundler after bundle deployment. :) And the app then works under passenger. - - PWD=`pwd` - cat > gemrc < - -%prep -/usr/bin/getent passwd zammad || /usr/sbin/useradd -g zammad -d /opt/zammad -s /bin/bash zammad -#%setup - -%build -# copy config file - - -%install -# delete old RPM_BUILD_ROOT -rm -rf $RPM_BUILD_ROOT -# set DESTROOT -export DESTROOT="opt/zammad/" -# create RPM_BUILD_ROOT DESTROOT -mkdir -p $RPM_BUILD_ROOT/$DESTROOT -# copy files -cd $RPM_BUILD_ROOT/$DESTROOT/../.. -pwd -tar xfj ../../SOURCES/zammad-%{version}.tar.bz2 -C $DESTROOT -#cp -Rv /opt/zammad $RPM_BUILD_ROOT/$DESTROOT - -# install init-Script -#install -d -m 755 $RPM_BUILD_ROOT/etc/rc.d/init.d -#install -d -m 755 $RPM_BUILD_ROOT/etc/sysconfig - - -# copy apache2-httpd.include.conf to /etc/httpd/conf.d/zzz_otrs.conf -#install -m 644 scripts/apache2-httpd.include.conf $RPM_BUILD_ROOT/etc/httpd/conf.d/zzz_otrs.conf - -%pre -# remember about the installed version -#if test -e /opt/otrs/RELEASE; then -# cat /opt/otrs/RELEASE|grep VERSION|sed 's/VERSION = //'|sed 's/ /-/g' > /tmp/otrs-old.tmp -#fi -# useradd -export ZUSER=zammad -echo -n "Check Zammad user ... " -if id $ZUSER >/dev/null 2>&1; then - echo "$ZUSER exists." - # update home dir - usermod -d /opt/zammads $ZUSER -else - useradd $ZUSER -U -d /opt/zammad -s /bin/bash -g zammad -c 'Zammad user' && echo "$ZUSER added." -fi - - -%post - - -%clean -#rm -rf $RPM_BUILD_ROOT - -%files -#%config(noreplace) /etc/sysconfig/otrs -#%config /etc/httpd/conf.d/zzz_otrs.conf -#/etc/rc.d/init.d/otrs -/opt/zammad -# - -%changelog -* Mon Dec 17 2012 - mb@otrs.com -- Added dependencies to Digest::SHA, Net::LDAP and Crypt::SSLeay, available from base repositories. -- Removed dependency on Time::HiRes in favor of perl-core package. - diff --git a/extras/zammad_nginx.conf b/extras/zammad_nginx.conf deleted file mode 100644 index a1046892b..000000000 --- a/extras/zammad_nginx.conf +++ /dev/null @@ -1,22 +0,0 @@ -server { - listen 80; - server_name SERVER_NAME; - root /opt/zammad/zammad/public; - - location ~ ^/(assets/|robots.txt|humans.txt|favicon.ico) { - expires max; - } - - location /ws { - proxy_http_version 1.1; - proxy_set_header Upgrade $http_upgrade; - proxy_set_header Connection "Upgrade"; - proxy_pass http://localhost:6042; - } - - location / { - proxy_set_header Host $host; - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; - proxy_pass http://localhost:3000; - } -}