Mike Frysinger
9a539ebbe1
further clean up OS differences in makefiles
...
No need for if() logic.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-10-20 14:32:37 -05:00
Mike Frysinger
d0bc4f20ad
drop useless "All rights reserved" notice
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-06-29 19:46:31 -04: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
Mike Frysinger
98d3b407fe
cc.mk: enable -g by default
...
Can do no harm!
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-05-28 12:00:13 -04:00
William Hubbs
67640d2d97
remove hard coded directory paths from link flags
...
Currently, we do not see a reason for these, and it causes an issue for
cross compilation.
X-Gentoo-Bug: 361465
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=361465
2011-04-01 17:32:12 -05:00
William Hubbs
3fca6bd027
allow default rc_sys value to be set at build time
...
This allows the default value of rc_sys to be set when openrc is
compiled. This will allow openrc to be installed, e.g. on vserver guests
and will allow them to be rebooted without the need to edit rc.conf.
This patch is a combined effort between myself and Robin Johnson.
X-Gentoo-Bug: 357247
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=357247
2011-03-05 00:04:06 -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
William Hubbs
a2e9cde737
remove BSD make code to handle including .depend
2011-02-04 22:28:57 -06:00
William Hubbs
aaaea44d22
use make conditional for -cstd flag
...
cc.mk was using ashell call to determine the value of the cstd variable.
This reworks that code so it uses a make conditional.
2011-02-04 22:26:23 -06:00
William Hubbs
cca7e9f7e1
use immediate evaluation for shell calls
...
This reworks the shell calls in the makefiles to use immediate
evaluation and should improve parallel building.
X-Gentoo-Bug: 289264
X-Gentoo-Bug-URL: http://bugs.gentoo.org/show_bug.cgi?id=289264
2011-01-31 14:05:57 -06:00
William Hubbs
10ce67886d
change local to run programs
...
This changes the local service so that it will run programs located in
@sysconfdir@/local.d instead of the local_start and local_stop functions
from @sysconfdir@/conf.d/local.
The advantage for the user is that these programs are not part
of the openrc package, so the user does not have to worry about them
being overwritten when openrc is upgraded.
X-Gentoo-Bug: 351465
X-Gentoo-Bug-URL: https://bugs.gentoo.org/show_bug.cgi?id=351465
2011-01-20 12:50:29 -06:00
Mike Frysinger
f796269a1d
dist.mk: add a standard "distcheck" target
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-01-17 04:03:25 -05:00
Nathan Phillip Brink
a534b623b9
bug #351622 : Use CFLAGS during linking.
...
Fix compilation on portage-multilib.
2011-01-14 16:40:58 -06: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
e575b33047
We shouldn't use -L/lib
2009-05-02 18:29:00 +01:00
Roy Marples
658a220638
Add (c) to Copyright
2009-05-01 15:11:40 +01:00
Roy Marples
b70501ef45
Go back to git
2009-04-30 15:05:39 +01:00
Roy Marples
e2629b0a3b
Remove .depend before creating it.
2009-04-24 08:33:11 +00:00
Roy Marples
2243c01390
Add snapshot and snap targets
2009-01-12 23:12:06 +00:00
Roy Marples
eb6daeca43
Fix dist for svn
2008-12-07 07:51:40 +00:00
Roy Marples
e72aeebbcd
make ignore now updates svn:ignore as different OS's have different targets.
2008-12-04 19:21:47 +00:00
Roy Marples
38e6c9ba5c
make ignore now configures the sv:ignore property.
2008-12-04 12:38:23 +00:00
Roy Marples
d12bb5cf3c
Really fix .depend
2008-10-20 16:47:56 +00:00
Roy Marples
9c76b077d6
Enable use of .depend on gmake. Also, generate extra dependencies for our shared libraries.
2008-10-20 12:09:14 +00:00
Roy Marples
66ae6e38a7
Compile with FreeBSD 6.x make
2008-10-15 09:02:27 +00:00
Roy Marples
aa02a5516a
Use better CFLAGS - some new warnings will need to be fixed.
2008-09-18 13:49:58 +00:00
Roy Marples
11acce3c7d
Use CPPFLAGS so we work with -combine in CFLAGS.
2008-06-19 23:12:00 +00:00
Roy Marples
5ba6f0a628
We need to ensure that the init script started is correct, translating symlinks. This has a new rule - multiplexed services must exist in the same dir as the master sript. So we need to ensuret that net.lo(0) is the real script and not a symlink itself. This fixes Gentoo #219526 .
2008-04-29 10:25:45 +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
a718975e08
Add license blurb to a few files and append my email to my name.
2008-03-26 17:55:35 +00:00
Roy Marples
15d34d0a16
Add license blurb to a few files and append my email to my name.
2008-03-26 17:53:37 +00:00
Roy Marples
8e71c03495
No more need for SUBOS
2008-03-26 14:29:27 +00:00
Roy Marples
833903fc78
use $CP and $SED instead of cp and sed
2008-03-26 14:27:46 +00:00
Roy Marples
e30ea10e6c
Fix some more prefix stuff.
2008-03-26 05:08:56 +00:00
Roy Marples
f06e186d43
Fix mandir install.
2008-03-25 20:39:31 +00:00
Roy Marples
ae9ce04468
Allow MANPREFIX to work.
2008-03-25 17:24:54 +00:00
Roy Marples
74bff8a931
DIR should be prefixed already.
2008-03-25 16:59:26 +00:00
Roy Marples
55eb3794fb
Rework our folder structure so that we don't have OS specific dirs, making it easier to share init and conf files per OS.
2008-03-25 14:06:05 +00:00
Roy Marples
64332a3675
Add debug.mk
2008-03-24 11:52:01 +00:00
Mike Frysinger
486d517674
setup a bit of a test framework
2008-03-24 07:17:05 +00:00
Mike Frysinger
9ed5d28d15
add check/test rules
2008-03-24 06:10:40 +00:00
Roy Marples
e598b7d2cd
Tweak install.
2008-03-20 17:52:07 +00:00
Roy Marples
6d2e1f7add
Fix building on Linux.
2008-03-19 19:43:08 +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
089caec283
Add missing .mks
2008-03-19 15:38:05 +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
a689b66023
Add tunable SYSCONFDIR
2008-03-05 12:27:11 +00:00
Roy Marples
0e14742783
Fix multilib.
2008-03-04 20:44:39 +00:00
Roy Marples
b614477948
Fix ignore files some more.
2008-03-03 13:31:25 +00:00
Roy Marples
f35c879bb8
Ignore fixes.
2008-03-03 13:14:54 +00:00
Roy Marples
7a8e9d4ddb
Add a gitignore make target.
2008-03-03 13:04:08 +00:00
Roy Marples
61c476e72d
Use exlicit make targets, not directory contents.
2008-03-03 12:34:51 +00:00
Roy Marples
0aedc02860
Introduce LOCAL_PREFIX for a user maintained script location.
2008-03-03 10:33:42 +00:00
Roy Marples
67c5fd6bb8
Ensure that our scripts call prefixed runscript.
2008-03-02 21:14:01 +00:00
Roy Marples
7c092fbc79
If build in a prefix, define the system as prefix.
2008-03-02 10:40:08 +00:00
Roy Marples
a135d0d93b
Fix installing into PREFIX.
2008-03-01 22:12:33 +00:00
Roy Marples
f092045650
Support the use of PREFIX and PKG_PREFIX.
2008-02-28 11:08:49 +00:00
Roy Marples
c2648ca5f5
Makefile SH variable now tweaks the default shell used by our scripts.
2008-02-27 20:29:32 +00:00
Roy Marples
405cea1f19
Support the PCC compiler.
2008-02-20 18:06:01 +00:00
Roy Marples
fabce3a51b
Sanify the default cc flags.
2008-02-20 10:34:11 +00:00
Roy Marples
7406537363
Fix compile warnings.
2008-02-19 19:05:18 +00:00
Roy Marples
8d61a07f5e
Fix CSTD.
2008-02-19 17:51:20 +00:00
Roy Marples
42dd9965cc
Default to using C99 standard.
2008-02-19 16:49:28 +00:00
Roy Marples
62096f542f
Use DOCDIR
2008-02-01 13:24:09 +00:00
Roy Marples
ee9476223d
Typo
2008-01-30 10:04:15 +00:00
Roy Marples
2be93c3e0e
Specify install modes for all our files.
2008-01-30 10:02:53 +00:00
Roy Marples
b6be36e5ea
Don't enforce a C99 compiler.
2008-01-18 11:27:49 +00:00
Roy Marples
1d21c6b774
Fix pmake requiring some output here.
2008-01-18 11:26:23 +00:00
Roy Marples
abc7a79755
script install should build objects
2008-01-13 14:14:47 +00:00
Roy Marples
f755187020
Change lib name during make, not install.
2008-01-13 13:55:23 +00:00
Roy Marples
d4404ea9c7
Ensure we link against libraries in /lib instead of anywhere else and always use the linker in /libexec instead of anywhere else.
2008-01-11 23:40:22 +00:00
Roy Marples
99ef274848
Fix rpathness on NetBSD again.
2008-01-11 18:55:46 +00:00
Roy Marples
f0c0391088
Remove non standard -R option.
2008-01-11 18:33:23 +00:00
Roy Marples
0334b0be2e
Add sys.mk
2008-01-11 18:29:47 +00:00
Roy Marples
cd685410bd
NetBSD doesn't include /lib in its link path, so we need to add it as an RPATH.
2008-01-11 17:21:21 +00:00
Roy Marples
28afeac09e
Add sys.mk to define system locations.
2008-01-11 16:03:38 +00:00
Roy Marples
cbc174bbbf
Use a specific default terminal for rc
2008-01-11 11:25:40 +00:00
Roy Marples
13c552c3ec
Allow OS to define default package locations.
2008-01-11 10:55:36 +00:00
Roy Marples
349f4a81e6
No point in having runlevel rules in a seperate .mk now
2008-01-11 09:42:28 +00:00
Roy Marples
22b7a12b6e
Fix SUBOS_SH
2008-01-10 19:50:01 +00:00
Roy Marples
023270f76a
Don't go into SUBOS if same as OS.
2008-01-10 16:48:02 +00:00
Roy Marples
2857fb49d1
Fix SUBOS
2008-01-10 16:42:14 +00:00
Roy Marples
7cdffe5e13
Fix SUBOS
2008-01-10 16:40:41 +00:00
Roy Marples
3016c4efd4
Add missing mk's
2008-01-10 16:37:42 +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