diff options
author | 2016-05-08 15:46:39 -0700 | |
---|---|---|
committer | 2016-05-08 15:46:39 -0700 | |
commit | b81fc5407bb5b8d44b48811f17660d0f92c589a6 (patch) | |
tree | e68211ce10a73b24fff3a51aa1a2ec148ac0634c | |
parent | Update pconfigure to 0.11.0 (diff) | |
download | palmer-b81fc5407bb5b8d44b48811f17660d0f92c589a6.tar.gz palmer-b81fc5407bb5b8d44b48811f17660d0f92c589a6.tar.bz2 palmer-b81fc5407bb5b8d44b48811f17660d0f92c589a6.zip |
Add pplug, my first init script!
-rw-r--r-- | sys-apps/pplug/Manifest | 2 | ||||
-rw-r--r-- | sys-apps/pplug/files/pplug | 15 | ||||
-rw-r--r-- | sys-apps/pplug/pplug-0.0.2.ebuild | 29 |
3 files changed, 46 insertions, 0 deletions
diff --git a/sys-apps/pplug/Manifest b/sys-apps/pplug/Manifest new file mode 100644 index 0000000..9889a0d --- /dev/null +++ b/sys-apps/pplug/Manifest @@ -0,0 +1,2 @@ +DIST pplug-0.0.2.tar.gz 4957 SHA256 1753c64236d1ba6f153b90bb483839203b8d1abe6e8d711d5221c843755c1fed SHA512 a892b3a9e6c2d7d020812c9b81b404235a2d36f79e288c796bcc719fd5f73f82f3b47c7a0ace00af0538fbf989198b4675da7ba77b8fa77831b1d577845a9d0e WHIRLPOOL 1db030f225626e6ef89da5456719f394ce2c71ec4892715ac4e9a52353f96c151b69035acbddd848847ec0378aa4914c7cf420858a9ee42d2f79d83d855e1df7 +EBUILD pplug-0.0.2.ebuild 603 SHA256 9038656de8356e2aea55bf1badc4c6a9ba3479813774160bcda40a0c90279365 SHA512 d8d0219851b329f9bc1693c829ad745684739803ef7fbccfa56721760ba92f82d5ff14527aafe67d8026d0cb2b2b9d00a0eebbedb9a39ee4928770e81487de63 WHIRLPOOL 045c9707cf0a7525895b46625d9dda590f97e7028a810047cd24b9ba8ef37af204d7439b974badfa71fb2758b063d1da58719d59977763c163c94b69287ff0ed diff --git a/sys-apps/pplug/files/pplug b/sys-apps/pplug/files/pplug new file mode 100644 index 0000000..d10bea0 --- /dev/null +++ b/sys-apps/pplug/files/pplug @@ -0,0 +1,15 @@ +#!/sbin/openrc-run + +description="Create and initialize pplug database" + +depend() +{ + after localmount +} + +start() +{ + mkdir /var/run/pplug + pplug-write "run" "on" + chgrp -R pplug /var/run/pplug +} diff --git a/sys-apps/pplug/pplug-0.0.2.ebuild b/sys-apps/pplug/pplug-0.0.2.ebuild new file mode 100644 index 0000000..1d58c2d --- /dev/null +++ b/sys-apps/pplug/pplug-0.0.2.ebuild @@ -0,0 +1,29 @@ +EAPI="5" +inherit eutils + +DESCRIPTION="A daemon-less hotplug management system" +HOMEPAGE="http://github.com/palmer-dabbelt/pplug/" +SRC_URI="https://github.com/palmer-dabbelt/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 amd64-linux" +IUSE="" + +RDEPEND="sys-devel/pconfigure + >=dev-libs/psqlite-0.0.3:= + >=dev-libs/putil-0.0.2:= + dev-libs/libbase64:= + " + +DEPEND="${RDEPEND}" + +src_configure() { + echo "PREFIX = ${EPREFIX}/usr" > Configfile.local + pconfigure +} + +pkg_postinst() { + enewgroup pplug + doinitd "${FILESDIR}/pplug" +} |