summaryrefslogtreecommitdiff
blob: d1a8f720d6be87c7f6d2157ffc2fa8c94016495e (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

DESCRIPTION="control scripts for f3507g"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64"
IUSE="gps"

DEPEND=""
RDEPEND="${DEPEND}
	net-dialup/ppp
	gps? ( >=sci-geosciences/gpsd-2.39 )"

src_install() {
	newconfd "${FILESDIR}/f3507g.confd" f3507g
	newinitd "${FILESDIR}/f3507g.initd" f3507g
	use gps && newinitd "${FILESDIR}/f3507g-gpsd.initd" f3507g-gpsd
	use gps && newconfd "${FILESDIR}/f3507g-gpsd.confd" f3507g-gpsd
	dodoc "${FILESDIR}"/net.example
}

pkg_postinst() {
	elog "Use the /etc/conf.d/f3507g-gpsd script to start a gpsd"
	elog "instance which uses the f3507g gps device."
	elog "An ppp example config has been installed at"
	elog "/usr/share/doc/${PV}"
}