Added urbackup-server

This commit is contained in:
Austen Adler 2016-08-31 14:44:08 -04:00
parent a85770c31d
commit d6c04477fa
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
2 changed files with 45 additions and 0 deletions

View File

@ -0,0 +1,2 @@
DIST urbackup-server-2.0.33.tar.gz 4261285 SHA256 13c3c45541037cef37fb99ff4323fd115908cd1ba8318f30394adf60d2fc0170 SHA512 4467550326044d0b777dfd8faf7eb98536bba56947bcfc5d25f2376a2b05a77a9176a35a299f45e4becd73ebc46050c26a94de58abadfded770aa62b2633ff58 WHIRLPOOL fb5d0b647b6958a6db32f64579c002fc55ba3d31bcac9dc6e02ee9b3cd5705389d6621601a595bd7162e5d20466bf70986b70346e6797680b4403e2122e99197
EBUILD urbackup-server-2.0.33.ebuild 1349 SHA256 af357e54467f438e8b6442a469417b6fc76e0d288227f20be9c54a2f2d72e6aa SHA512 27b7ed24369a6b805648033b96b4f80f4dfcb5bcd375be5fab68d8516292050baf10a06fce0f15ec3ab253093f5093f6e144d0ecd9b802f1818c4988cdafb7eb WHIRLPOOL af7a14fc2c46dc93dc380b02ccf33760e476aa05740994e2a73cf1bbdbf8c1c8ff9387da945a7e85ba918e1a2f9885059a88d9db078b8c314ccaeb9416cd487b

View File

@ -0,0 +1,43 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=6
inherit user
DESCRIPTION="A backup server for UrBackup"
HOMEPAGE="https://www.urbackup.org/"
SRC_URI="https://hndl.urbackup.org/Server/${PV}/${P}.tar.gz"
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
ENV_SETTINGS_URBACKUP="
URBACKUP_GROUP_GID URBACKUP_GROUP_NAME
URBACKUP_USER_NAME URBACKUP_USER_UID URBACKUP_USER_SH URBACKUP_USER_HOMEDIR URBACKUP_USER_GROUPS
"
DEPEND=""
RDEPEND="${DEPEND}"
src_compile() {
emake
}
src_install() {
default
}
pkg_setup() {
[ -z "${URBACKUP_GROUP_GID}" ] && URBACKUP_GROUP_GID=88
[ -z "${URBACKUP_GROUP_NAME}" ] && URBACKUP_GROUP_NAME=urbackup
[ -z "${URBACKUP_USER_NAME}" ] && URBACKUP_USER_NAME=urbackup
[ -z "${URBACKUP_USER_UID}" ] && URBACKUP_USER_UID=88
[ -z "${URBACKUP_USER_SH}" ] && URBACKUP_USER_SH=/bin/bash
[ -z "${URBACKUP_USER_HOMEDIR}" ] && URBACKUP_USER_HOMEDIR=/var/spool/urbackup
[ -z "${URBACKUP_USER_GROUPS}" ] && URBACKUP_USER_GROUPS="${URBACKUP_GROUP_NAME}"
enewgroup "${URBACKUP_GROUP_NAME}" "${URBACKUP_GROUP_GID}"
enewuser "${URBACKUP_USER_NAME}" "${URBACKUP_USER_UID}" "${URBACKUP_USER_SH}" "${URBACKUP_USER_HOMEDIR}" "${URBACKUP_USER_GROUPS}"
}
pkg_postinst() {
einfo "This does not come with an init script, so you need to make your own"
}