forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
app-misc/inputlircd: use #!/sbin/openrc-run instead of #!/sbin/runscript
Gentoo-Bug: https://bugs.gentoo.org/show_bug.cgi?id=573846 Package-Manager: portage-2.2.26
- Loading branch information
Showing
4 changed files
with
70 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/sbin/runscript | ||
#!/sbin/openrc-run | ||
|
||
start() { | ||
ebegin "Starting lircd" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
#!/sbin/runscript | ||
#!/sbin/openrc-run | ||
|
||
depend() { | ||
provide lirc | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*" | ||
HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk" | ||
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.bz2" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND="" | ||
RDEPEND="" | ||
|
||
src_unpack() { | ||
unpack ${A} | ||
cd "${S}" | ||
sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die | ||
} | ||
|
||
src_compile() { | ||
emake CC="$(tc-getCC)" || die "make failed" | ||
} | ||
|
||
src_install() { | ||
emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed" | ||
|
||
newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd | ||
newconfd "${FILESDIR}"/inputlircd.conf inputlircd | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 1999-2016 Gentoo Foundation | ||
# Distributed under the terms of the GNU General Public License v2 | ||
# $Id$ | ||
|
||
inherit toolchain-funcs | ||
|
||
DESCRIPTION="Inputlirc daemon to utilize /dev/input/event*" | ||
HOMEPAGE="http://svn.sliepen.eu.org/inputlirc/trunk" | ||
SRC_URI="http://gentooexperimental.org/~genstef/dist/${P}.tar.gz" | ||
|
||
LICENSE="GPL-2" | ||
SLOT="0" | ||
KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86" | ||
IUSE="" | ||
|
||
DEPEND="" | ||
RDEPEND="" | ||
|
||
src_unpack() { | ||
unpack ${A} | ||
cd "${S}" | ||
sed -e 's:$(CFLAGS):$(CFLAGS) $(LDFLAGS):' -i Makefile || die | ||
} | ||
|
||
src_compile() { | ||
emake CC="$(tc-getCC)" || die "make failed" | ||
} | ||
|
||
src_install() { | ||
emake DESTDIR="${D}" PREFIX=/usr install || die "emake install failed" | ||
|
||
newinitd "${FILESDIR}"/inputlircd.init.2 inputlircd | ||
newconfd "${FILESDIR}"/inputlircd.conf inputlircd | ||
} |