summaryrefslogtreecommitdiff
blob: 8021280fa9f52a73e3fe6ba846453450bd07a889 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/wgetpaste/wgetpaste-2.12.ebuild,v 1.8 2009/03/17 13:57:06 armin76 Exp $

DESCRIPTION="Command-line interface to various pastebins"
HOMEPAGE="http://wgetpaste.zlin.dk/"
SRC_URI="http://wgetpaste.zlin.dk/${P}.bz2"

LICENSE="as-is"
SLOT="0"
KEYWORDS="alpha amd64 arm hppa ia64 m68k ~mips ppc ppc64 s390 sh sparc x86 ~x86-fbsd"
IUSE=""

DEPEND=""
RDEPEND=""

S=${WORKDIR}

src_install() {
	newbin ${P} ${PN}
}

pkg_postinst() {
	local f oldfiles=()
	for f in "${ROOT}"etc/wgetpaste{,.d/*.bash}; do
		oldfiles+=("${f}")
	done

	if [[ -n ${oldfiles[@]} ]]; then
		ewarn "The config files for wgetpaste have changed to *.conf."
		ewarn
		for f in "${oldfiles[@]}"; do
			ewarn "Please move ${f} to ${f%.bash}.conf"
		done
		ewarn
		ewarn "Users with personal config files will need to do the same for"
		ewarn "~/.wgetpaste and ~/.wgetpaste.d/*.bash."
	fi
}