diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /sys-libs/musl-nscd |
reinit the tree, so we can have metadata
Diffstat (limited to 'sys-libs/musl-nscd')
-rw-r--r-- | sys-libs/musl-nscd/Manifest | 6 | ||||
-rw-r--r-- | sys-libs/musl-nscd/files/nscd.initd | 59 | ||||
-rw-r--r-- | sys-libs/musl-nscd/files/nscd.service | 15 | ||||
-rw-r--r-- | sys-libs/musl-nscd/files/nscd.tmpfilesd | 4 | ||||
-rw-r--r-- | sys-libs/musl-nscd/metadata.xml | 14 | ||||
-rw-r--r-- | sys-libs/musl-nscd/musl-nscd-9999.ebuild | 29 |
6 files changed, 127 insertions, 0 deletions
diff --git a/sys-libs/musl-nscd/Manifest b/sys-libs/musl-nscd/Manifest new file mode 100644 index 000000000000..75e6b3df2c91 --- /dev/null +++ b/sys-libs/musl-nscd/Manifest @@ -0,0 +1,6 @@ +AUX nscd.initd 1415 SHA256 e8043aabd7f0b6f9993d83cf041e2d9d55d2c05284cc6fe4f1dd3a5761591c95 SHA512 e0d5c6d7ea19043518755518adea00e9155902ad6c4095ecc653582f6c0b9f056eb64dd32814f799ae2ff0d51b8709166360a13a14126de015706d30b84af6ab WHIRLPOOL 395176fa21048f47eee072f2208f0ae28f2db6f0753f16fc36d055fd0a288ee4094866458c06c15e98fdbe20ab778b5d1890bf1e090e138c5373c5787330b13f +AUX nscd.service 337 SHA256 de7bc9946309d34f0ab44aa22a4d3cf259fe91c57e8000d741cb09ecd3a6caa0 SHA512 2001100f3b054843c69b6fd2d38852c7c824282aa8998c25a3c0352db993705429d25c70d8ce6cb3579f836b7089644c520acac423ebd69cb1b36e94a77c5bea WHIRLPOOL f01d191971b0dc45f541c9ebaaa1a40f3497e2cc838cff6a20a7b1828d726c248abbd94322a5a5ff30c33ddb7d9086cd4d2ba3bdc1811fed59ff292ef3983a72 +AUX nscd.tmpfilesd 111 SHA256 f0f64c4612d2097173854d2ec2e94ecbf4b77c7a6e94d950874e37346aa90d72 SHA512 53b80b331e1a85d8ee16eb2ce547a7249e944926c3d1cdd4a47a5301a5c842ffc7ec1e3dc0a731542a8facf8261c1c57121802d01741aa89898a3476c09da340 WHIRLPOOL cf1fed1a7e2ac1623a84f1cfa2062645afe3f791da2f4ace3859d12aa05df0e282b4c2e367a460015956ac2a8d01fee4cda84917a3adf2c38561dff200335270 +EBUILD musl-nscd-9999.ebuild 664 SHA256 afffb7dfd80421a672192f28435eecf87d84516c19bb8b106387cb7cdc0af642 SHA512 a30eeab05e0cfe0427a59b40740b819cf236005f0cbbbca3e25990124d30040d141cc681e15947a47c6695e8ed8f9932a7ab72566cb6fd4d359ea941fcb0daf8 WHIRLPOOL 6cea6c9407b5f29523afba9a38e71be6fed2caf1a1a6ec60e142904db794d1af38cbeb47381dd313a9c380b6f7b523c06f736d2511d4e3498bb56ced07225f8c +MISC ChangeLog 456 SHA256 82b5ec7b15aea90fc4697c6b84497fed12adfc79ec7d8ebfe50f71de62839045 SHA512 fdc6e3f42e8c99e4bcb14f000830d183ad8f2ad5b4c6e989a929cb59563e6f59516652e1c0fef170be8a7cc5baac4f0358fb463856d78251fcc36b3b21f0b54d WHIRLPOOL c8430000e88427a2376a238e422054b5da9b9629e8d5b6ab0626503c01e326b8ec9e6393bfb25290f51e1943b4a74dc9c8fe19711cdda6f75a19737ea3b90d68 +MISC metadata.xml 402 SHA256 0d54a9356015fce546623e40afe99d762f1a69c0ca19d2344ef5a49acd9ac1f2 SHA512 365e5b780076080f19c4377606fd39a4c4f321e5383ed41d7a644601e705942a9c5264acd4a5390c2a57bb3d9bfcd5df00ad961bd07c5e7f28e4d5123b1a24f8 WHIRLPOOL aaa7eeab92d759486ed5ef48f36436e66c4e651f3155209a49d90b79259c28e29b2eb26678f02ad284bd806d9ea7b00c07410c79f0bf3911debce6f6bee63b94 diff --git a/sys-libs/musl-nscd/files/nscd.initd b/sys-libs/musl-nscd/files/nscd.initd new file mode 100644 index 000000000000..1bf83e7808af --- /dev/null +++ b/sys-libs/musl-nscd/files/nscd.initd @@ -0,0 +1,59 @@ +#!/sbin/openrc-run +# Copyright 1999-2005 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +depend() { + use dns ldap net slapd +} + +checkconfig() { + if [ ! -d /var/run/nscd ] ; then + mkdir -p /var/run/nscd + chmod 755 /var/run/nscd + fi + if [ -z "${NSCD_PERMS_OK}" ] && [ "$(stat -c %a /var/run/nscd)" != "755" ] ; then + echo "" + ewarn "nscd run dir is not world readable, you should reset the perms:" + ewarn "chmod 755 /var/run/nscd" + ewarn "chmod a+rw /var/run/nscd/socket" + echo "" + ewarn "To disable this warning, set 'NSCD_PERMS_OK' in /etc/conf.d/nscd" + echo "" + fi +} + +start() { + checkconfig + + ebegin "Starting Name Service Cache Daemon" + local secure=`while read curline ; do + table=${curline%:*} + entries=${curline##$table:} + table=${table%%[^a-z]*} + case $table in + passwd*|group*|hosts) + for entry in $entries ; do + case $entry in + nisplus*) + /usr/sbin/nscd_nischeck $table || \ + /echo "-S $table,yes" + ;; + esac + done + ;; + esac + done < /etc/nsswitch.conf` + mkdir -p "$(dirname ${PIDFILE:-/var/run/nscd/nscd.pid})" + start-stop-daemon --start --quiet \ + --exec /usr/sbin/nscd --pidfile "${PIDFILE:-/var/run/nscd/nscd.pid}" \ + -- $secure + eend $? +} + +stop() { + ebegin "Shutting down Name Service Cache Daemon" + start-stop-daemon --stop --quiet --exec /usr/sbin/nscd --pidfile "${PIDFILE:-/var/run/nscd/nscd.pid}" + eend $? +} + +# vim:ts=4 diff --git a/sys-libs/musl-nscd/files/nscd.service b/sys-libs/musl-nscd/files/nscd.service new file mode 100644 index 000000000000..25a3b1d9be0a --- /dev/null +++ b/sys-libs/musl-nscd/files/nscd.service @@ -0,0 +1,15 @@ +[Unit] +Description=Name Service Cache Daemon +After=network.target + +[Service] +ExecStart=/usr/sbin/nscd -F +ExecStop=/usr/sbin/nscd --shutdown +ExecReload=/usr/sbin/nscd -i passwd +ExecReload=/usr/sbin/nscd -i group +ExecReload=/usr/sbin/nscd -i hosts +ExecReload=/usr/sbin/nscd -i services +Restart=always + +[Install] +WantedBy=multi-user.target diff --git a/sys-libs/musl-nscd/files/nscd.tmpfilesd b/sys-libs/musl-nscd/files/nscd.tmpfilesd new file mode 100644 index 000000000000..52edbba673cf --- /dev/null +++ b/sys-libs/musl-nscd/files/nscd.tmpfilesd @@ -0,0 +1,4 @@ +# Configuration to create /run/nscd directory +# Used as part of systemd's tmpfiles + +d /run/nscd 0755 root root diff --git a/sys-libs/musl-nscd/metadata.xml b/sys-libs/musl-nscd/metadata.xml new file mode 100644 index 000000000000..7a97e61f8d53 --- /dev/null +++ b/sys-libs/musl-nscd/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>lejonet@gentoo.org</email> + <name>Daniel Kuehn</name> + </maintainer> + <use> + <flag name="minimal">Only installs the header files</flag> + </use> + <upstream> + <remote-id type="github">pikhq/musl-nscd</remote-id> + </upstream> +</pkgmetadata> diff --git a/sys-libs/musl-nscd/musl-nscd-9999.ebuild b/sys-libs/musl-nscd/musl-nscd-9999.ebuild new file mode 100644 index 000000000000..cdee80a89452 --- /dev/null +++ b/sys-libs/musl-nscd/musl-nscd-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit git-r3 systemd + +DESCRIPTION="musl-nscd is an implementation of the NSCD protocol for the musl libc" +HOMEPAGE="https://github.com/pikhq/musl-nscd" +EGIT_REPO_URI="https://github.com/pikhq/musl-nscd" +EGIT_BRANCH=master + +LICENSE="MIT" +SLOT="0" +IUSE="minimal" + +src_install() { + if use minimal; then + emake DESTDIR="${D}" install-headers + else + emake DESTDIR="${D}" install + + newinitd "${FILESDIR}"/nscd.initd nscd + systemd_dounit "${FILESDIR}"/nscd.service + systemd_newtmpfilesd "${FILESDIR}"/nscd.tmpfilesd nscd.conf + + dodoc README + fi +} |