Commit Graph
51 Commits
Author SHA1 Message Date
Mike Frysinger 227f831639 cc.mk: move debug.mk out of end Makefiles
Since we always want debug.mk whenever we include cc.mk, move the include
out of the Makefiles and into cc.mk itself.  This also fixes an include
order bug in rc/Makefile where debug.mk is included before cc.mk and
breaks the default CFLAGS setup in cc.mk.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28 12:00:34 -04:00
William Hubbs 04379b2de9 fix symlink target
The target for the symlinks in ${SBINDIR} (the same directory as the rc
binary) was "rc". This is not correct; the target should be
${SBINDIR}/rc instead.
2011-02-07 02:25:00 -06:00
William Hubbs db6d680765 rework pam, ncurses and termcap include files
This allows error checking inside the included files instead of either
including the appropriate file or a blank file.

Also the blank file named .mk gets removed by this change.
2011-02-04 22:30:30 -06:00
Chris RichardsandWilliam Hubbs 21c5a022af selinux: replace symlinks with wrapper scripts
This needs to be done on selinux systems so the proper context can be
set for each rc applet.

X-Gentoo-Bug: 351712
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=351712
2011-01-31 14:54:02 -06:00
Roy Marples ac6808a73e Regenerate version.h if necessary 2009-10-16 08:13:34 +01:00
Roy Marples a8f6a9b654 Add new utility and init script swclock that sets the system time based on
the mtime of a file. It saves the shutdown time to this file also.
This is handy for systems without a working RTC chip.
Based on an idea by Michael A. Smith <michael@smith-li.com>.
Fixes Gentoo #272073.
2009-10-13 08:03:45 +01:00
Roy Marples 07f9be7b1c Add pkg-config support, fixes #187. 2009-10-08 00:20:43 +01:00
Roy Marples c0fd1b49e4 Move non compiled libraries from /lib/rc to /libexec/rc
OpenRC version is now stored as plaintext in /libexec/rc/version

Plugins (cursplash, splashutils) will have to be re-compiled to pickup
the new directories. State data needs to be moved from /lib/rc/init.d
to /libexec/rc/init.d as well.
2009-05-23 20:38:12 +01:00
Roy Marples caf29a6480 Fix git versioning 2009-05-01 00:15:20 +01:00
Roy Marples 21e45e895c Brand with git version instead of svn 2009-04-30 19:16:31 +01:00
Roy Marples c9e24a0494 Move status to runscript.sh so init scripts can override it, #159
Return 32 if crashed, #163
2009-04-18 00:09:03 +00:00
Roy Marples 30a7a3a9bf Fix locale with svnversion, #140 thanks to Matthias Schwarzott. 2009-01-14 14:32:56 +00:00
Roy Marples a063035b37 Make _SVNVER_SH more readable. 2009-01-02 22:51:47 +00:00
Roy Marples 213cef1739 Fix version for releases. 2009-01-02 16:48:42 +00:00
Roy Marples f8210050e5 If we're building from subversion, brand the binary as such. 2008-12-04 13:12:46 +00:00
Roy Marples 2ff0838abb We should show hotplugged services, needed services and manually started services in rc-status. 2008-10-30 14:59:14 +00:00
Roy Marples cea206014d Attempt to make s-s-d simpler by not enforcing the need for a full path and maybe working better with interpreted scripts. 2008-07-27 11:30:49 +00:00
Roy Marples 11acce3c7d Use CPPFLAGS so we work with -combine in CFLAGS. 2008-06-19 23:12:00 +00:00
Roy Marples 587051ec67 Add the ewaitfile function so init scripts can wait until sockts are created, Gentoo #175783. 2008-06-03 11:57:15 +00:00
Roy Marples b7e598ad91 Install symlinks correctly, thanks to zlin. 2008-05-13 00:03:10 +00:00
Roy Marples ee4e861796 Put some dir locations in rc.h so that 3rd party apps can become awware of them. 2008-03-28 10:46:12 +00:00
Roy Marples 821166fbfd Fix debug support to work without gmake and bundle -ggdb in properly. 2008-03-24 11:43:03 +00:00
Mike Frysinger 9ed5d28d15 add check/test rules 2008-03-24 06:10:40 +00:00
Mike Frysinger bd34df6361 add support for automatic gdb launching when RC_DEBUG is defined to 1 to ease bug reporting / information gathering 2008-03-22 23:02:30 +00:00
Mike Frysinger 5dcdfcdf7a add local rpaths if in the git tree 2008-03-22 23:00:32 +00:00
Roy Marples 494fb0a5f6 Add --list to rc-service to list all available services. 2008-03-21 09:10:59 +00:00
Roy Marples d9ec62b22a Add rc-service and update all softlevel refs to runlevel. 2008-03-19 17:11:50 +00:00
Roy Marples 64853c4916 Rejig the build system a little so we have per ok defs per system. Probably easier in the long run. 2008-03-19 15:22:20 +00:00
Roy Marples cb9da6a262 Remove null terminated char ** lists in favour of RC_STRINGLIST, using TAILQ from queue(3). Refactor code style around the BSD KNF. 2008-03-16 17:00:56 +00:00
Roy Marples b7c0d8b43c Remove debug LDFLAGS 2008-03-11 13:45:58 +00:00
Roy Marples 52a3cc162b Add a --mount command to fstabinfo so it can mount specific mount points, as mount can get confused with binded mounts, bug #36. 2008-03-11 13:39:20 +00:00
Roy Marples a689b66023 Add tunable SYSCONFDIR 2008-03-05 12:27:11 +00:00
Roy Marples 7a8e9d4ddb Add a gitignore make target. 2008-03-03 13:04:08 +00:00
Roy Marples f092045650 Support the use of PREFIX and PKG_PREFIX. 2008-02-28 11:08:49 +00:00
Roy Marples 110a083ad2 Fix compile against old lib.s 2008-02-02 13:00:01 +00:00
Roy Marples 3506cb2dc7 Ensure that we use our default CFLAGS if none set. 2008-01-30 15:00:58 +00:00
Roy Marples 2be93c3e0e Specify install modes for all our files. 2008-01-30 10:02:53 +00:00
Roy Marples e068757810 Put the applets into rc-applet.c so that rc.c is easier to manage. 2008-01-14 14:24:20 +00:00
Mike Frysinger d810e597dc partial revert of previous commit -- the rpath stuff was meant to be kept local only 2008-01-14 10:18:52 +00:00
Roy Marples d695407114 Add support for is_newer_than and is_older_than. is_older_than currently doesn't work as expected, but is_newer_than works fine. 2008-01-14 08:12:37 +00:00
Mike Frysinger 09b958b99d add shortcuts for generating symlinks 2008-01-14 05:32:39 +00:00
Roy Marples 7f9ea7c7c4 Fix PAM install 2008-01-13 10:21:22 +00:00
Roy Marples 5bf95bd3f3 Use MKTERMCAP and MKPAM so we don't use env vars TERMCAP or PAM inadvertently. 2008-01-12 20:38:57 +00:00
Roy Marples 4314784520 Allow for OS and SUBOS folders so we can introduce NetBSD scripts whilst keeping BSD for all BSD's. 2008-01-10 16:35:59 +00:00
Roy Marples 06634f6309 Style updates. 2008-01-09 11:44:43 +00:00
Roy Marples 74e0e58b89 Stop using CPPFLAGS 2008-01-07 09:39:44 +00:00
Roy Marples b1540cba5b Use a dynamically expanding buffer for reading config files. 2008-01-06 19:52:43 +00:00
Roy Marples 8afb86a5de Set include paths in Makefile instead of .c files 2008-01-06 13:47:39 +00:00
Roy Marples 75815abd6c Fix installing pam files 2008-01-05 20:54:34 +00:00
Roy Marples 44d63fdec6 Fix installing links 2008-01-05 20:53:28 +00:00