aboutsummaryrefslogtreecommitdiff
path: root/runit
diff options
context:
space:
mode:
Diffstat (limited to 'runit')
-rw-r--r--runit/Config.in10
-rw-r--r--runit/Kbuild8
-rw-r--r--runit/Makefile23
-rw-r--r--runit/Makefile.in42
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
6menu "Runit Utilities" 6menu "Runit Utilities"
7 7
8config CONFIG_CHPST 8config 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
15config CONFIG_SETUIDGID 15config 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
20config CONFIG_ENVUIDGID 20config 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
25config CONFIG_ENVDIR 25config 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
31config CONFIG_SOFTLIMIT 31config 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
7lib-y:=
8lib-$(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
7ifndef top_srcdir
8top_srcdir=..
9endif
10ifndef top_builddir
11top_builddir=..
12endif
13srcdir=$(top_srcdir)/runit
14RUNIT_DIR:=./
15include $(top_srcdir)/Rules.mak
16include $(top_builddir)/.config
17include Makefile.in
18all: $(libraries-y)
19-include $(top_builddir)/.depend
20
21clean:
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
7RUNIT_AR:=runit.a
8ifndef RUNIT_DIR
9RUNIT_DIR:=$(top_builddir)/runit/
10endif
11srcdir=$(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
24RUNIT-y:=
25RUNIT-$(CONFIG_CHPST) += chpst.o uidgid.o
26
27RUNIT-y:=$(sort $(RUNIT-y))
28
29ifneq ($(strip $(RUNIT-y)),)
30libraries-y+=$(RUNIT_DIR)$(RUNIT_AR)
31endif
32
33RUNIT_SRC-y:=$(patsubst %.o,$(srcdir)/%.c,$(RUNIT-y))
34RUNIT_SRC-a:=$(wildcard $(srcdir)/*.c)
35APPLET_SRC-y+=$(RUNIT_SRC-y)
36APPLET_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)