Commit 93764793 authored by Seblu's avatar Seblu
Browse files

Remove unscd

parent d37e5e7e
Loading
Loading
Loading
Loading

unscd/PKGBUILD

deleted100644 → 0
+0 −34
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer <seblu@aur.archlinux.org>

pkgname=unscd
pkgver=0.49
pkgrel=2
pkgdesc='Drop-in replacement for glibc nscd which is designed for simplicity and stability'
arch=('i686' 'x86_64')
url='http://busybox.net/~vda/unscd/'
license=('GPL2')
source=("http://busybox.net/~vda/unscd/nscd-$pkgver.c"
        'unscd.service' 'unscd.conf' 'unscd.8')
md5sums=('ee9cdaac340635e0c14551febbc0fd22'
         '59892bff1bedef6a5e9c50c4a74e0a86'
         'cfbab3d1c5b0fe362a218ad15ad2d6e3'
         '9069ba3a3a07673ab1a7cc70018b387e')

prepare() {
  sed -i 's,/etc/nscd.conf,/etc/unscd.conf,g' "nscd-$pkgver.c"
  sed -i 's,/var/run/,/run/,g' "nscd-$pkgver.c"
}

build() {
  gcc -fomit-frame-pointer -Wl,--sort-section -Wl,alignment -Wl,--sort-common \
    -Os $CFLAGS $LDFLAGS -o $pkgname "nscd-$pkgver.c"
}

package() {
  install -D -m 755 unscd "$pkgdir/usr/bin/unscd"
  install -D -m 644 unscd.conf "$pkgdir/etc/unscd.conf"
  install -D -m 644 unscd.8 "$pkgdir/usr/share/man/man8/unscd.8"
  install -D -m 644 unscd.service "$pkgdir/usr/lib/systemd/system/unscd.service"
}

# vim:set ts=2 sw=2 ft=sh et:

unscd/unscd.8

deleted100644 → 0
+0 −31
Original line number Diff line number Diff line
.TH UNSCD "8" "October 2010" "unscd - nscd which does not hang" "User Commands"
.SH NAME
unscd \- nscd which does not hang
.SH SYNOPSIS
.B unscd
[\fIOPTION\fR...]
.SH DESCRIPTION
Micro Name Service Cache Daemon
.TP
\fB\-d\fR, \-\-debug
Do not daemonize; log to stderr
.HP
\fB\-f\fR, \-\-config\-file File to read configuration from
.TP
\fB\-i\fR, \-\-invalidate
Invalidate cache
.TP
\fB\-K\fR, \-\-shutdown
Shut the server down
.TP
\fB\-t\fR, \-\-nthreads
Serve N requests in parallel
.TP
\fB\-V\fR, \-\-version
Version
.SH FILES
.B /etc/unscd.conf
.SH AUTHOR
unscd was written by Denys Vlasenko and is licensed under the GPL version 2.
.TP
This manpage was written by Don Armstrong <don@debian.org> and updated to Archlinux by Sebastien Luttringer <seblu+arch@seblu.net>

unscd/unscd.conf

deleted100644 → 0
+0 −71
Original line number Diff line number Diff line
# This file is currently taken verbatim from the version distributed
# with GNU glibc's nscd with unused configurations removed
# 
# /etc/unscd.conf
#
# An example Name Service Cache config file.  This file is needed by nscd.
#
# Legal entries are:
#
#	logfile			<file>
#	debug-level		<level>
#	threads			<initial #threads to use>
#	max-threads		<maximum #threads to use>
#	server-user             <user to run server as instead of root>
#		server-user is ignored if nscd is started with -S parameters
#       stat-user               (ignored; any user can stat)
#	reload-count		(ignored; unscd should never crash)
#	paranoia		(ignored)
#	restart-interval	(ignored; unscd should never crash)x
#
#       enable-cache		<service> <yes|no>
#	positive-time-to-live	<service> <time in seconds>
#	negative-time-to-live   <service> <time in seconds>
#       suggested-size		<service> <prime number>
#	check-files		<service> <yes|no>
#	persistent		<service> (ignored)
#	shared			<service> (ignored)
#	auto-propagate		<service> (ignored)
#
# Currently supported cache names (services): passwd, group, hosts
#


#	logfile			/var/log/unscd.log
#	threads			4
#	max-threads		32
#	server-user		nobody
#	stat-user		somebody
	debug-level		0
#	reload-count		5
	paranoia		no
#	restart-interval	3600

	enable-cache		passwd		yes
	positive-time-to-live	passwd		600
	negative-time-to-live	passwd		20
	suggested-size		passwd		211
	check-files		passwd		yes
	persistent		passwd		yes
	shared			passwd		yes
	auto-propagate		passwd		yes

	enable-cache		group		yes
	positive-time-to-live	group		3600
	negative-time-to-live	group		60
	suggested-size		group		211
	check-files		group		yes
	persistent		group		yes
	shared			group		yes
	auto-propagate		group		yes

# hosts caching is broken with gethostby* calls, hence is now disabled per default.
	enable-cache		hosts		no
	positive-time-to-live	hosts		3600
	negative-time-to-live	hosts		20
	suggested-size		hosts		211
	check-files		hosts		yes
	persistent		hosts		yes
	shared			hosts		yes

# unscd does not support services caching

unscd/unscd.service

deleted100644 → 0
+0 −16
Original line number Diff line number Diff line
[Unit]
Description=Name Service Cache Daemon

[Service]
Type=forking
ExecStart=/usr/bin/nscd
ExecStop=/usr/bin/nscd --shutdown
ExecReload=/usr/bin/nscd -i passwd
ExecReload=/usr/bin/nscd -i group
ExecReload=/usr/bin/nscd -i hosts
ExecReload=/usr/bin/nscd -i services
Restart=always
PIDFile=/run/nscd/nscd.pid

[Install]
WantedBy=multi-user.target