megacoffee.net Gentoo overlay - legacy mirror
We have moved to Git. This repository is only provided for compatibility with old installations. Learn how to migrate your installation here.
comparison app-backup/backup2l/backup2l-1.5.ebuild @ 22:12dd1a91bbdf
copied backup2l ebuild from 1.4 to 1.5
author | Daniel Neugebauer <dneuge@energiequant.de> |
---|---|
date | Wed, 15 Aug 2012 11:23:51 +0200 |
parents | app-backup/backup2l/backup2l-1.4.ebuild@51003172505b |
children |
comparison
equal
deleted
inserted
replaced
21:51003172505b | 22:12dd1a91bbdf |
---|---|
1 # Copyright 1999-2007 Gentoo Foundation | |
2 # Distributed under the terms of the GNU General Public License v2 | |
3 # $Header: $ | |
4 | |
5 # note by megacoffee.net overlay repository: | |
6 | |
7 # source of ebuild is bug 167249 on Gentoo Bugzilla | |
8 # https://bugs.gentoo.org/show_bug.cgi?id=167249 | |
9 # original author: bugzilla user "Will" | |
10 # posted on: 2007-02-16 19:01:20 UTC | |
11 | |
12 # minimal modifications have been made: | |
13 | |
14 # < KEYWORDS="~x86" | |
15 # --- | |
16 # > KEYWORDS="~x86 ~amd64" | |
17 | |
18 # < exeinto /usr/local | |
19 # --- | |
20 # > #exeinto /usr/local | |
21 # > exeinto /usr/bin | |
22 | |
23 HOMEPAGE="http://sourceforge.net/projects/backup2l/" | |
24 SRC_URI="mirror://sourceforge/backup2l/${P/-/_}.tar.gz" | |
25 | |
26 LICENSE="GPL-2" | |
27 SLOT="0" | |
28 KEYWORDS="~x86 ~amd64" | |
29 IUSE="" | |
30 | |
31 DEPEND="" | |
32 RDEPEND="" | |
33 | |
34 src_install() { | |
35 | |
36 PREFIX=/usr | |
37 PREFIX_BIN=/usr/bin | |
38 PREFIX_CONF=/etc | |
39 | |
40 dodir $PREFIX_CONF/cron.daily | |
41 CRON_FILE=$PREFIX_CONF/cron.daily | |
42 | |
43 PROG_FILES="$PREFIX_BIN/backup2l $PREFIX/man/man8/backup2l.8.gz" | |
44 CONF_FILES="$PREFIX_CONF/backup2l.conf $CRON_FILE" | |
45 | |
46 elog "Installing program" | |
47 #exeinto /usr/local | |
48 exeinto /usr/bin | |
49 doexe backup2l #$PREFIX_BIN | |
50 | |
51 elog "Installing manual" | |
52 doman backup2l.8 | |
53 | |
54 elog "Installing sample configuration file" | |
55 insinto $PREFIX_CONF | |
56 newins first-time.conf backup2l.conf | |
57 | |
58 elog "Installing sample cron task" | |
59 insinto $CRON_FILE | |
60 doins zz-backup2l | |
61 elog "Configuration files installed." | |
62 } | |
63 | |
64 pkg_postinst() { | |
65 ewarn "Make sure you edit /etc/backupl.conf prior doing anything else..." | |
66 ewarn "You will have to define what to backup and where at least." | |
67 ewarn "Read the entire configuration file, one line must be uncommented." | |
68 } |