diff options
Diffstat (limited to 'runit')
-rw-r--r-- | runit/Config.in | 10 | ||||
-rw-r--r-- | runit/Kbuild | 8 | ||||
-rw-r--r-- | runit/Makefile | 23 | ||||
-rw-r--r-- | runit/Makefile.in | 42 |
4 files changed, 13 insertions, 70 deletions
diff --git a/runit/Config.in b/runit/Config.in index 073ca1425..b90b0232e 100644 --- a/runit/Config.in +++ b/runit/Config.in | |||
@@ -5,30 +5,30 @@ | |||
5 | 5 | ||
6 | menu "Runit Utilities" | 6 | menu "Runit Utilities" |
7 | 7 | ||
8 | config CONFIG_CHPST | 8 | config CHPST |
9 | bool "chpst" | 9 | bool "chpst" |
10 | default n | 10 | default n |
11 | help | 11 | help |
12 | chpst changes the process state according to the given options, and | 12 | chpst changes the process state according to the given options, and |
13 | execs specified program. | 13 | execs specified program. |
14 | 14 | ||
15 | config CONFIG_SETUIDGID | 15 | config SETUIDGID |
16 | bool "setuidgid" | 16 | bool "setuidgid" |
17 | help | 17 | help |
18 | Sets soft resource limits as specified by options | 18 | Sets soft resource limits as specified by options |
19 | 19 | ||
20 | config CONFIG_ENVUIDGID | 20 | config ENVUIDGID |
21 | bool "envuidgid" | 21 | bool "envuidgid" |
22 | help | 22 | help |
23 | Sets $UID to account's uid and $GID to account's gid | 23 | Sets $UID to account's uid and $GID to account's gid |
24 | 24 | ||
25 | config CONFIG_ENVDIR | 25 | config ENVDIR |
26 | bool "envdir" | 26 | bool "envdir" |
27 | help | 27 | help |
28 | Sets various environment variables as specified by files | 28 | Sets various environment variables as specified by files |
29 | in the given directory | 29 | in the given directory |
30 | 30 | ||
31 | config CONFIG_SOFTLIMIT | 31 | config SOFTLIMIT |
32 | bool "softlimit" | 32 | bool "softlimit" |
33 | help | 33 | help |
34 | Sets soft resource limits as specified by options | 34 | Sets soft resource limits as specified by options |
diff --git a/runit/Kbuild b/runit/Kbuild new file mode 100644 index 000000000..9fee84224 --- /dev/null +++ b/runit/Kbuild | |||
@@ -0,0 +1,8 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | lib-y:= | ||
8 | lib-$(CONFIG_CHPST) += chpst.o uidgid.o | ||
diff --git a/runit/Makefile b/runit/Makefile deleted file mode 100644 index be65856fe..000000000 --- a/runit/Makefile +++ /dev/null | |||
@@ -1,23 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | ifndef top_srcdir | ||
8 | top_srcdir=.. | ||
9 | endif | ||
10 | ifndef top_builddir | ||
11 | top_builddir=.. | ||
12 | endif | ||
13 | srcdir=$(top_srcdir)/runit | ||
14 | RUNIT_DIR:=./ | ||
15 | include $(top_srcdir)/Rules.mak | ||
16 | include $(top_builddir)/.config | ||
17 | include Makefile.in | ||
18 | all: $(libraries-y) | ||
19 | -include $(top_builddir)/.depend | ||
20 | |||
21 | clean: | ||
22 | rm -f *.o *.a $(AR_TARGET) | ||
23 | |||
diff --git a/runit/Makefile.in b/runit/Makefile.in deleted file mode 100644 index d8cea10c2..000000000 --- a/runit/Makefile.in +++ /dev/null | |||
@@ -1,42 +0,0 @@ | |||
1 | # Makefile for busybox | ||
2 | # | ||
3 | # Copyright (C) 1999-2005 by Erik Andersen <andersen@codepoet.org> | ||
4 | # | ||
5 | # Licensed under the GPL v2, see the file LICENSE in this tarball. | ||
6 | |||
7 | RUNIT_AR:=runit.a | ||
8 | ifndef RUNIT_DIR | ||
9 | RUNIT_DIR:=$(top_builddir)/runit/ | ||
10 | endif | ||
11 | srcdir=$(top_srcdir)/runit | ||
12 | |||
13 | #unix_a:=buffer.o \ | ||
14 | #buffer_get.o buffer_put.o buffer_read.o buffer_write.o coe.o \ | ||
15 | #fd_copy.o fd_move.o fifo.o lock_ex.o lock_exnb.o \ | ||
16 | #ndelay_off.o ndelay_on.o open_append.o open_read.o \ | ||
17 | #open_trunc.o open_write.o openreadclose.o pathexec_env.o \ | ||
18 | #pathexec_run.o prot.o readclose.o seek_set.o sig.o \ | ||
19 | #sig_block.o sig_catch.o sig_pause.o stralloc_cat.o stralloc_catb.o \ | ||
20 | #stralloc_cats.o stralloc_eady.o stralloc_opyb.o stralloc_opys.o \ | ||
21 | #stralloc_pend.o wait_nohang.o \ | ||
22 | #wait_pid.o | ||
23 | |||
24 | RUNIT-y:= | ||
25 | RUNIT-$(CONFIG_CHPST) += chpst.o uidgid.o | ||
26 | |||
27 | RUNIT-y:=$(sort $(RUNIT-y)) | ||
28 | |||
29 | ifneq ($(strip $(RUNIT-y)),) | ||
30 | libraries-y+=$(RUNIT_DIR)$(RUNIT_AR) | ||
31 | endif | ||
32 | |||
33 | RUNIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(RUNIT-y)) | ||
34 | RUNIT_SRC-a:=$(wildcard $(srcdir)/*.c) | ||
35 | APPLET_SRC-y+=$(RUNIT_SRC-y) | ||
36 | APPLET_SRC-a+=$(RUNIT_SRC-a) | ||
37 | |||
38 | $(RUNIT_DIR)$(RUNIT_AR): $(patsubst %,$(RUNIT_DIR)%, $(RUNIT-y)) | ||
39 | $(do_ar) | ||
40 | |||
41 | $(RUNIT_DIR)%.o: $(srcdir)/%.c | ||
42 | $(compile.c) | ||