jasper
76f70ab125
- add /usr/lib/pkgconfig/
14 years ago
ajacoutot
ff4f8c6619
There is no point in calling rc_conf manually from each and every rc
script; instead, rc.subr can call rc_conf itself right after reading in
rc.conf.
from schwarze@ (committing on his behalf)
ok robert@
14 years ago
ajacoutot
2f1b097008
Fix a flaw in the rc.subr framework reported by stephan@ where
local_rcconf would get overwritten by flags from the rc script itself.
Based on an original idea and diff from robert@, create an rc_conf
function that we add in the rc_script after the defaults daemon*
variables.
This way we can use defaults variables names in other part of the script
(when defining a specific pexp for instance).
While here, simplify setting up the default daemon variables so that we
don't need to do any substitution in rc_start.
rc scripts must include daemon variables before calling rc_conf. All
other locally modified variables (pexp, rc_reload, local additions...)
must come after.
feedback from and works for sthen@
ok robert@
14 years ago
deraadt
72958252d8
Consistantly use /dev/arandom for feeding entropy to the kernel.
ok kjell otto miod
14 years ago
millert
58a7be37c3
Do not attempt to prepend /dev/ to path if it already contains a slash.
OK jsing@
14 years ago
otto
c709ba9eaa
remove comment that hasn't been true for quite a while now;
ok deraadt@ djm@
14 years ago
millert
aab35837b7
Always return a pointer to the static buffer in realpath, even if
path and realpath are the same. This matches the manual and avoids
a bogus cast to non-const. OK jsing@, previous version OK kettenis@
14 years ago
millert
642ed026af
opendev() path argument should be const. OK deraadt@
14 years ago
tedu
a4a61f54ff
allow default blowfish rounds to be tweakable by arch, no behavioral change
ok deraadt
14 years ago
dhill
bc96223819
avoid pointer arithmetic on void *
tested for a while by me.
ok otto@
14 years ago
ajacoutot
7dddee5347
Add IANA officially assigned numbers for zabbix.
ok sthen@ deraadt@
14 years ago
martynas
bb956f3634
- make HUGE_VAL, HUGE_VALF, HUGE_VALL, INFINITY, NAN expand to the
constant expressions with the help of gcc post-3.3.
ok millert@, mikeb@. been in snaps for weeks.
14 years ago
ajacoutot
9cf9abb40e
Prefer '-l' over '-' which is deprecated.
Also noticed and agreed by eric@
ok robert@
14 years ago
robert
90f75c52e5
simulate a full login with su, now that the environment is fine after
the last su(1) commit
14 years ago
millert
70cb24d85a
Only run tset for interactive shells. OK robert@
14 years ago
ajacoutot
c4b90b3612
Make it possible to mark an rc action as unsupported by setting the
corresponding variable to NO.
e.g.
rc_reload=NO
This will save us the trouble of copying the same rc_reload() function
(or others) all over the tree.
ok robert@
14 years ago
ajacoutot
0ac91ffd59
Sanitise daemon_flags: remove multiple whitespaces from _rcflags.
requested by okan@, ok robert@
14 years ago
robert
97fd28dab8
Do not overwrite the settings in the rc scripts itself, so use the same
method to handle _class, _user and _shell as we do for _flags.
discussed with and ok ajacoutot@
14 years ago
robert
b8cf932a14
Add support for setting _user _class and _shell for a specific daemon,
and use su to start the daemons.
By default if there is no class defined, daemon will be used. For a shell
it defaults to /bin/sh.
14 years ago
millert
04ae106a16
The awk's split() starts numbering array indices at 1 not 0.
14 years ago
jmc
6a45e9cb55
involes -> involves; from Carlos Alberto Pereira Gomes
14 years ago
claudio
48f09b7f57
Update example filterset to include a basic IPv6 filterset.
While there extend the current IPv4 filterset.
OK sthen@, henning@
14 years ago
otto
ed51634dbd
better line for net.inet.carp.log reflecing current reality;
ok mcbride@ claudio@ henning@
14 years ago
ajacoutot
383753a760
Do like in rc.local and print the daemon name before running rc_stop.
ok robert@
14 years ago
miod
48d32bc4e0
regen
14 years ago
miod
5caa9a05a9
Sync MAKEDEV against conf.c, and both against GENERIC.
14 years ago
ajacoutot
29231ce06c
Consistency and remove the >50 spaces after 'do'...
ok robert@
14 years ago
jsing
96b190e24d
Document isduid(3).
Tweaks from jmc@
ok jmc@ krw@
14 years ago
jsing
46beb6358d
Crank minor due to the addition of isduid().
14 years ago
jsing
9f93f11b6d
Teach readlabelfs() how to handle DUIDs.
ok krw@
14 years ago
jsing
972351062d
Factor out DUID identification code so that it can easily be reused.
ok krw@
14 years ago
matthieu
2514a9bb9a
Add libXi doc dir
14 years ago
ajacoutot
9377125bb7
Don't print 'Null message body; hope that's ok' in the rc output if the
call to rc.firstime doesn't output anything to mail(1).
ok deraadt@ halex@
14 years ago
ratchov
f60a5c1cbc
make sio_onvol(3) return a integer exposing whether a volume knob
is available for the stream. As we're at it, remove macros and
functions that are neither used nor documented.
14 years ago
ajacoutot
4f3be43f84
Print the daemon name _before_ starting the corresponding rc script.
"makes sense" schwarze@, ok robert@
14 years ago
deraadt
ee32a82a4b
delete excessive ; use
14 years ago
matthieu
07034f71eb
New doc directories for updated libs. remained by naddy@. thanks.
14 years ago
nicm
f6bf132ce8
imsg.h requires sys/uio.h, ok deraadt
14 years ago
robert
5bbfd7b67c
remove my debug printf
14 years ago
robert
d8008fb0fb
After discussing with Ingo and Antoine we decided to rename
files to not include -. This way we can easily overwrite
daemon flags from rc.conf.local.
14 years ago
robert
3f59bf9ad3
add $
14 years ago
millert
84b7e5bd5f
Change basep parameter of getdirentries() to be off_t *, not long *
so it works correctly with large offsets (and matches other systems).
This requires adding a new getdirentries syscall, with the old one
renamed to ogetdirentries. All in-tree consumers of getdirentries()
have been updated. Bump libc and libpthread major numbers.
OK and with deraadt@
14 years ago
mikeb
af6c901202
remove skipjack and cast from the libc; ok deraadt
14 years ago
espie
60394f828b
let the readmes directory be standard
14 years ago
ajacoutot
cfcca0b7b6
Protect variable names, to be consistent with rc(8).
ok robert@
14 years ago
robert
bb62dcba0d
Remove 'status', because 'check' is what is used internally and we don't
need two functions doing the same thing, and also allow check to run as
non-root.
14 years ago
robert
f17fc3744c
Missing redirection to /dev/null in rc_start
14 years ago
robert
65db6172a9
quote $local_rcconf in [ ] and remove eval from rc_start()
14 years ago
robert
cfe71d6442
Add a simple 'rc' system to base in order to start/stop/restart/reload
services installed by the ports system (for now).
It only uses pgrep/pkill to handle these processes. A manual page will
come later.
'put it in' deraadt@
14 years ago
otto
5228178676
print the pointer value that caused the error (if available); ok
deraadt@ nicm@ (on an earlier version)
14 years ago