diff options
author | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 21:04:05 +0000 |
---|---|---|
committer | Dan Goodliffe <dan@randomdan.homeip.net> | 2015-12-04 21:04:05 +0000 |
commit | f0f9ea270949a458444b6a38aec91a908466e680 (patch) | |
tree | 961770731f21d66979c27374342a359cdedf2642 /eclass/systemd-unit.eclass | |
parent | Modern Pressnet (diff) | |
download | portage-f0f9ea270949a458444b6a38aec91a908466e680.tar.bz2 portage-f0f9ea270949a458444b6a38aec91a908466e680.tar.xz portage-f0f9ea270949a458444b6a38aec91a908466e680.zip |
systemd-unit eclass and drbd service
Diffstat (limited to 'eclass/systemd-unit.eclass')
-rw-r--r-- | eclass/systemd-unit.eclass | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/eclass/systemd-unit.eclass b/eclass/systemd-unit.eclass new file mode 100644 index 0000000..d3e1e60 --- /dev/null +++ b/eclass/systemd-unit.eclass @@ -0,0 +1,31 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +# +# Original Author: randomdan +# Purpose: systemd-unit files +# + +inherit "systemd" +DESCRIPTION="${PN}" +HOMEPAGE="http://git.randomdan.homeip.net/cgit.cgi/util/tree/systemd-units" +SRC_URI="http://git.randomdan.homeip.net/cgit.cgi/util/plain/systemd-units/${PN/-/.}?id=${P} -> ${PN/-/.}" +RESTRICT="mirror" + +LICENSE="gpl" +SLOT="0" +KEYWORDS="x86 amd64" +IUSE="" + +src_unpack() +{ + mkdir ${S} + cp ${DISTDIR}/${A} ${S} +} + +src_install() +{ + systemd_dounit ${S}/${A} +} + |