blob: cef0eb1d80b58c4b4c52dbe66ea1124cc29d73cb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
DESCRIPTION="An open source Eye-Fi Server written in Python."
HOMEPAGE="http://returnbooleantrue.blogspot.com/"
SRC_URI="https://github.com/nirgal/EyeFiServer/archive/${PVR}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="dev-lang/python
doc? ( app-text/txt2man )"
src_unpack() {
unpack ${A}
}
src_prepare() {
cd "${WORKDIR}/EyeFiServer-${PVR}"
if use doc ; then
txt2man -t eyefiserver -r eyefiserver -s 1 -v "Executable programs or shell commands" -I file doc/eyefiserver.txt > doc/eyefiserver.1
txt2man -t eyefiserver.conf -r eyefiserver -s 5 -v "File formats and conventions" doc/eyefiserver.conf.txt > doc/eyefiserver.conf.5
fi
}
src_install() {
cd "${WORKDIR}/EyeFiServer-${PVR}"
insinto /etc
doins etc/eyefiserver.conf || die
doinitd etc/init.d/eyefiserver || die
exeinto /usr/bin
doexe src/eyefiserver || die
if use doc ; then
doman doc/eyefiserver.1 || die
doman doc/eyefiserver.conf.5 || die
fi
}
pkg_postinst() {
elog "You will need to set up your /etc/eyefiserver.conf file before"
elog "running EyeFi Server for the first time."
}
|