William Hubbs
b34df9dd81
fix selinux build
2016-01-13 20:11:06 -06:00
William Hubbs
bf2f40828e
Remove multicall binary structure from OpenRC
...
This eliminates the need for the selinux-specific wrapper scrript we
were installing in /lib*/rc/{bin,sbin}.
2016-01-12 10:42:14 -06:00
William Hubbs
8b93492086
convert all references from runscript to openrc-run
2015-04-27 11:21:29 -05:00
Will Miles
3f80f22e22
Prioritize local includes and libraries
...
This fixes #35 .
2015-01-24 13:48:53 -06:00
William Hubbs
7a92eb8887
rename git.mk to gitver.mk
...
This is a more descriptive name since this file only sets the gitver
variable.
2014-12-05 11:55:45 -06:00
William Hubbs
cc1bc6a4ce
src/rc/Makefile: typo fix
2014-07-19 12:59:35 -05:00
William Hubbs
010c2ab18b
Rename SELinux source files
...
The name rc-selinux-util.* is a bit long, so I renamed the source files
to rc-selinux.*
X-Gentoo-Bug: 516956
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16 14:14:37 -05:00
Jason Zaman
9c689542c3
checkpath: restore the SELinux context
...
X-Gentoo-Bug: 516956
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=516956
2014-07-16 13:09:38 -05:00
William Hubbs
3470eda3f5
Rename runscript to openrc-run
...
This was requested by Debian, because the minicom software, which is
available on Debian and other distros, has a binary named runscript. We
are keeping a backward compatibility symlink for now, but this allows
Debian or any other distro to safely remove the symlink.
X-Gentoo-Bug: 494220
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=494220
2013-12-29 22:57:31 -06:00
William Hubbs
7b5fa011ac
Rename the rc binary to openrc
...
Debian requested this rename due to the "rc" binary conflicting with the
"rc" binary from the plan 9 shell.
We also add a deprecation warning to the binary when it is run as rc to
encourage users to switch to openrc instead.
X-Gentoo-Bug: 493958
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=493958
2013-12-12 18:31:29 -06:00
William Hubbs
48981be8a8
Revert "Make einfo routines private"
...
This reverts commit de88aff0a8
.
I was advised that splashutils links to libeinfo, so we do have a
consumer for this library.
2013-10-21 13:49:41 -05:00
William Hubbs
de88aff0a8
Make einfo routines private
...
The libeinfo library has no consumers other than OpenRC, so there is no
reason for it to be maintained as a library. The einfo routines are now
an object that links with the rc binary.
2013-09-26 22:18:21 -05:00
William Hubbs
a09a60c4cf
Add service applet
...
The service applet is equivalent to rc-service. This was added so that
we will be more compatible with Debian and Fedora.
Reported-by: cardoe@gentoo.org
X-Gentoo-Bug: 468168
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=468168
2013-05-02 13:52:27 -05:00
William Hubbs
70628a875b
fix the build for non-selinux systems
...
The symlinks should be created only if MKSELINUX=yes, not if it just has
a value.
2013-05-01 18:20:01 -05:00
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 Richards
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