Roy Marples
f5fb796619
We use -W in the loop vars, no don't duplicate in the test.
2008-01-04 15:47:34 +00:00
Mike Frysinger
09cf3342d5
do not hardcode ar or ranlib
2008-01-04 15:36:56 +00:00
Roy Marples
3d163f4548
Remove support for static and pam combined - too problematic.
2008-01-04 15:19:04 +00:00
Roy Marples
aa1129a71d
More static building fixes.
2008-01-04 14:46:45 +00:00
Roy Marples
633297a6ca
Support static building against a non static PAM.
2008-01-04 14:01:24 +00:00
Roy Marples
d7961bef66
Add BIN_LDFLAGS so that we can build static bins without affecting our shared libraries.
2008-01-04 11:06:58 +00:00
Roy Marples
5ce37e1cef
Ensure that copyright is unique for rc, librc and libeinfo. Also, fix branding a little.
2008-01-03 17:23:42 +00:00
Roy Marples
f56929ea7d
Put branding in version.h
2008-01-03 17:05:29 +00:00
Roy Marples
301c378ffe
Make depend a global target
2008-01-02 17:28:35 +00:00
Roy Marples
b204eb57dc
Really dd depend target
2008-01-02 17:07:44 +00:00
Roy Marples
0855e685bd
Add depend target
2008-01-02 17:02:33 +00:00
Roy Marples
fadee8e656
Move _shell_var shell function to shell_var C applet
2008-01-02 15:38:37 +00:00
Roy Marples
b768255ee4
Don't install relative symlinks
2007-12-28 15:21:59 +00:00
Roy Marples
f1d1281c04
Let service_started_daemon work off SVCNAME
2007-12-20 15:44:38 +00:00
Roy Marples
f02d9b6f6f
checkown -> checkpath
2007-12-19 14:46:38 +00:00
Roy Marples
ed620aec61
get_options -> service_get_value and save_options -> service_set_value
2007-12-19 14:28:38 +00:00
Roy Marples
9f2403dffa
Remove Gentoo copyright from all files that I know I have written
2007-12-14 14:12:38 +00:00
Roy Marples
9a6cfc0a9b
Add termcap support.
2007-12-08 02:50:35 +00:00
Roy Marples
9252492d2f
We don't care about update-rc
2007-11-28 15:50:18 +00:00
Roy Marples
ac9279cc0d
Massive whitespace cleanup
2007-11-28 15:45:03 +00:00
Roy Marples
5f120db647
Fix install permissions a little
2007-11-23 14:42:19 +00:00
Roy Marples
6be2c2934b
rc.c needs version.h
2007-11-19 18:36:10 +00:00
Roy Marples
88ccccc22a
Move runlevel and lib logic to the sub Makefiles
2007-11-19 16:42:28 +00:00
Roy Marples
5f8cf73b22
Our build chain now works with GNU and BSD make implementations
2007-11-19 13:48:43 +00:00
Roy Marples
959219f236
Vanilla FreeBSD make is now supported for src
2007-11-15 15:25:51 +00:00
Roy Marples
a215128475
Install our .so links to /usr/lib
2007-11-14 16:42:56 +00:00
Roy Marples
69a040bf85
Show help if we don't have any args, Gentoo #198380 .
2007-11-14 16:19:56 +00:00
Roy Marples
ccf79ceb47
Control of system defined env vars should not be done by us.
2007-11-14 13:39:34 +00:00
Roy Marples
7cd70aee4d
You can now log baselayout-2 again, through the RC_LOGGER conf.d/rc
...
setting. The log is temp stored in /lib/rc/init.d/rc.log and appended
to /var/log/rc.log if it's writeable. sysinit cannot be logged in Linux
as we rely on sysinit to bring the system up to a point where we can log.
single user cannot be logged on FreeBSD due to waitpid(0,0,0) incorrectly
waiting for the log daemon in another process group.
2007-10-31 15:46:56 +00:00
Roy Marples
a28dd2d4ef
We now build and optionally work with static libraries.
2007-10-16 13:49:00 +00:00
Roy Marples
77205862e3
Bump librc and libeinfo to .so.1
2007-10-11 15:05:02 +00:00
Roy Marples
2613316686
Fix failed services a little, and make timeout more sane
2007-10-09 21:13:08 +00:00
Roy Marples
e7dab9bb91
Move rc_env_filter and rc_env_config out of librc and into rc
2007-10-08 11:07:39 +00:00
Roy Marples
2691f95a3a
rc doesn't and shouldn't use libkvm
2007-10-05 12:04:19 +00:00
Roy Marples
422ac82ef9
librc.so and libeinfo.so now have symbol versions.
2007-10-03 15:46:02 +00:00
Roy Marples
f795cd20f8
librc doesn't use libeinfo
2007-09-29 17:03:21 +00:00
Roy Marples
837f43e163
librc no longer uses libeinfo. deptree function names are now all under rc_deptree_
2007-09-29 16:42:08 +00:00
Roy Marples
8c402e53ee
Clean makefile for duplicate rules
2007-09-27 22:14:23 +00:00
Roy Marples
1d0b234e94
Fix Makefile for pmake, document s-s-d options and increase usage gap
2007-09-26 10:46:44 +00:00
Mike Frysinger
727a2d90ee
add some tests to make sure our exported symbols are sane
2007-09-26 08:44:39 +00:00
Roy Marples
1e4e8ed27a
Initial doxygen documentation for rc.h and einfo.h. Plus some header clean ups.
2007-09-25 15:38:21 +00:00
Mike Frysinger
5e28066929
split links out into a sep target so implicit rules dont cause problems
2007-09-25 01:42:24 +00:00
Roy Marples
e95cea3d86
Split our rc commands out into general use vs service commands
2007-09-24 12:09:43 +00:00
Roy Marples
45bd125dcc
Use a pty for prefixed output instead of pipes for stdout/stderr. This
...
is so that programs can get information about the controlling terminal.
This change was triggered by bug #188506 where it's possible that
stdin, stdout and stderr didn't point to a terminal but ended up on one
via our pipes. Using a pty means that stdout and stderr always point to
a terminal, but we lose the ability to tell them apart.
If there is not a pty available then we use un-prefixed output as normal.
This change has also introduced the need for a signal pipe so that
SIGCHLD can exit the loop cleanly.
2007-09-21 08:49:43 +00:00
Roy Marples
b6aa1c857c
Added the checkown applet based on the work by Renato Caldas, #192682
...
checkdir ensures that the specified files (or directories) are owned
by the current user/group or as specified on the command line. You can
optionally check permissions too.
2007-09-19 16:27:37 +00:00
Roy Marples
77f9015f0b
/lib/rcscripts -> /lib/rc
2007-09-19 13:53:40 +00:00
Roy Marples
a5585487aa
More --as-needed foo
2007-09-11 22:06:27 +00:00
Roy Marples
607f2b37b1
Work better with --as-needed
2007-09-11 21:45:26 +00:00
Roy Marples
bc6b031f2e
librc should link against libeinfo too
2007-09-10 21:26:13 +00:00
Roy Marples
ba4b5d5b7f
Makefile in src now supports pmake as used on the BSDs.
2007-09-06 13:00:03 +00:00