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

EAPI="4"

inherit eutils multilib

DESCRIPTION="A daemon to multicast or repsond to multicasted hardware info."
HOMEPAGE="http://opensource.dyc.edu/hwmultd"
SRC_URI="http://opensource.dyc.edu/pub/${PN}/${P}.tar.gz"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}"

pkg_setup() {
	enewgroup hwmultd
	enewuser hwmultd -1 -1 /dev/null "hwmultd,uucp"
}

src_install() {
	dodir /etc/init.d
	newinitd "${FILESDIR}"/hwmultd.initd hwmultd

	emake DESTDIR="${D}" install

	#Remove libtool .la files
	cd "${D}"/usr/$(get_libdir)/hwmultd
	rm -f *.la
}