glibc: add nscd subpkg. Bump revision.
--HG-- extra : convert_revision : ae998b3a2f3f33e848e97df0d1ef7e616ca2f465
This commit is contained in:
parent
7179621669
commit
1768ba5b48
6 changed files with 61 additions and 2 deletions
9
srcpkgs/glibc/files/nscd.conf
Normal file
9
srcpkgs/glibc/files/nscd.conf
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Configuration file for nscd(8).
|
||||||
|
#
|
||||||
|
logfile /var/log/nscd.log
|
||||||
|
debug-level 1
|
||||||
|
server-user nobody
|
||||||
|
enable-cache passwd yes
|
||||||
|
enable-cache group yes
|
||||||
|
enable-cache hosts yes
|
||||||
|
enable-cache services yes
|
5
srcpkgs/glibc/files/nscd.logrotate
Normal file
5
srcpkgs/glibc/files/nscd.logrotate
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
/var/log/nscd.log {
|
||||||
|
sharedscripts
|
||||||
|
copytruncate
|
||||||
|
missingok
|
||||||
|
}
|
23
srcpkgs/glibc/files/nscd.rc
Normal file
23
srcpkgs/glibc/files/nscd.rc
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
#!/sbin/runscript
|
||||||
|
|
||||||
|
command=/usr/sbin/nscd
|
||||||
|
pidfile=/var/run/nscd/nscd.pid
|
||||||
|
|
||||||
|
depend()
|
||||||
|
{
|
||||||
|
use dns ldap net slapd
|
||||||
|
}
|
||||||
|
|
||||||
|
start_pre()
|
||||||
|
{
|
||||||
|
if [ ! -d /var/run/nscd ]; then
|
||||||
|
mkdir -p /var/run/nscd
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
stop()
|
||||||
|
{
|
||||||
|
ebegin "Stopping nscd"
|
||||||
|
${command} -K
|
||||||
|
eend $?
|
||||||
|
}
|
21
srcpkgs/glibc/nscd.template
Normal file
21
srcpkgs/glibc/nscd.template
Normal file
|
@ -0,0 +1,21 @@
|
||||||
|
# Template file for 'nscd'.
|
||||||
|
#
|
||||||
|
short_desc="Name Service Cache Daemon"
|
||||||
|
long_desc="
|
||||||
|
This package contains nscd, a daemon that provides a cache for the
|
||||||
|
most common name service requests."
|
||||||
|
|
||||||
|
openrc_services="nscd default"
|
||||||
|
conf_files="/etc/nscd.conf"
|
||||||
|
|
||||||
|
Add_dependency run glibc
|
||||||
|
|
||||||
|
do_install()
|
||||||
|
{
|
||||||
|
install -d ${DESTDIR}/usr/sbin
|
||||||
|
mv ${SRCPKGDESTDIR}/usr/sbin/nscd ${DESTDIR}/usr/sbin
|
||||||
|
install -D -m755 ${FILESDIR}/nscd.rc ${DESTDIR}/etc/init.d/nscd
|
||||||
|
install -D -m644 ${FILESDIR}/nscd.conf ${DESTDIR}/etc
|
||||||
|
install -D -m644 ${FILESDIR}/nscd.logrotate \
|
||||||
|
${DESTDIR}/etc/logrotate.d/nscd
|
||||||
|
}
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'glibc'
|
# Template file for 'glibc'
|
||||||
pkgname=glibc
|
pkgname=glibc
|
||||||
version=2.11
|
version=2.11
|
||||||
revision=1
|
revision=2
|
||||||
distfiles="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.bz2"
|
distfiles="http://ftp.gnu.org/gnu/glibc/glibc-${version}.tar.bz2"
|
||||||
build_style=gnu_configure
|
build_style=gnu_configure
|
||||||
configure_script="../configure"
|
configure_script="../configure"
|
||||||
|
@ -24,7 +24,7 @@ long_desc="
|
||||||
essential=yes
|
essential=yes
|
||||||
base_chroot=yes
|
base_chroot=yes
|
||||||
conf_files="/etc/rpc /etc/ld.so.conf /etc/nsswitch.conf"
|
conf_files="/etc/rpc /etc/ld.so.conf /etc/nsswitch.conf"
|
||||||
subpackages="glibc-devel glibc-locales"
|
subpackages="glibc-devel glibc-locales nscd"
|
||||||
|
|
||||||
Add_dependency build gcc
|
Add_dependency build gcc
|
||||||
Add_dependency build kernel-libc-headers
|
Add_dependency build kernel-libc-headers
|
||||||
|
|
1
srcpkgs/nscd
Symbolic link
1
srcpkgs/nscd
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
glibc
|
Loading…
Reference in a new issue