Release 1.1.0

* edited install script
* edited README
+ added license
This commit is contained in:
arcan1s 2013-12-23 23:39:07 +04:00
parent 4a002e0d8b
commit 9141a1fc12
5 changed files with 44 additions and 16 deletions

View File

@ -1,5 +1,5 @@
# Author: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
# Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com> # Maintainer: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
# Author: Evgeniy "arcanis" Alexeev <esalexeev@gmail.com>
pkgname=queued pkgname=queued
pkgver=1.1.0 pkgver=1.1.0
@ -7,20 +7,13 @@ pkgrel=1
pkgdesc="Daemon for starting jobs to queue of calculations" pkgdesc="Daemon for starting jobs to queue of calculations"
arch=('any') arch=('any')
url="https://github.com/arcan1s/queued" url="https://github.com/arcan1s/queued"
license=("GPL") license=("GPLv3")
makedeps=('git') depends=('bash')
source=(https://github.com/arcan1s/queued/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz) source=(https://github.com/arcan1s/queued/releases/download/V.${pkgver}/${pkgname}-${pkgver}-src.tar.xz)
md5sums=('c7f710d8779e7cd780f7e8043735cae7') md5sums=('0832ae610567e0aed4dccea02408e5a3')
backup=('etc/queued.conf') backup=('etc/queued.conf')
package() package()
{ {
# daemon "${srcdir}/${pkgname}/install.sh" "${pkgdir}"
install -D -m755 "${srcdir}/${pkgname}/usr/bin/queued" "${pkgdir}/usr/bin/queued"
# service
install -D -m644 "${srcdir}/${pkgname}/usr/lib/systemd/system/queued.service" \
"${pkgdir}/usr/lib/systemd/system/queued.service"
install -D -m644 "${srcdir}/${pkgname}/etc/queued.conf" \
"${pkgdir}/etc/queued.conf"
} }

View File

@ -41,6 +41,7 @@ Dependencies
Installation Installation
------------ ------------
* download sources * download sources
* copy source to `/`: * run `install.sh` from source directory:
sudo cp ../queued/* / cd queued
sudo ./install.sh "/path/to/root"

View File

@ -1,5 +1,21 @@
#!/bin/bash #!/bin/bash
func_error() {
echo "Error installing"
exit 1
}
cp -r etc / [ -z "$1" ] && DESTDIR="/" || DESTDIR="$1"
cp -r usr / [ -d "$DESTDIR" ] || mkdir -p "$DESTDIR" || func_error
cd "$(dirname "${BASH_SOURCE[0]}")"
# daemon and configuration
install -D -m755 "usr/bin/queued" "$DESTDIR/usr/bin/queued" || func_error
install -D -m644 "etc/queued.conf" "$DESTDIR/etc/queued.conf" || func_error
# service
install -D -m644 "usr/lib/systemd/system/queued.service" "$DESTDIR/usr/lib/systemd/system/queued.service" || func_error
# man pages
install -D -m644 "usr/share/man/man1/queued.1" "$DESTDIR/usr/share/man/man1/queued.1" || func_error
install -D -m644 "usr/share/man/man5/queued.conf.5" "$DESTDIR/usr/share/man/man5/queued.conf.5" || func_error
exit 0

Binary file not shown.

View File

@ -1,4 +1,22 @@
#!/bin/bash #!/bin/bash
# queued is a simple daemon for starting jobs to queue of calculations
# Copyright (C) 2013 Evgeniy Alekseev
#
# This program 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 3 of the License, or
# (at your option) any later version.
#
# This program 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 program; if not, see http://www.gnu.org/licenses
# or write to the Free Software Foundation,Inc., 51 Franklin Street,
# Fifth Floor, Boston, MA 02110-1301 USA
# functions # functions
error_mes() { error_mes() {