From 308b6d5ffc6986133e2300886f2472585c939f6e Mon Sep 17 00:00:00 2001 From: piernov Date: Thu, 12 Jul 2012 22:13:18 +0200 Subject: distcc 3.1-1 ajout port --- distcc/.footprint.i686 | 122 +++++++++++++++++++++++++++++++++++++++++++++++ distcc/.footprint.x86_64 | 122 +++++++++++++++++++++++++++++++++++++++++++++++ distcc/.md5sum.i686 | 4 ++ distcc/.md5sum.x86_64 | 4 ++ distcc/Pkgfile | 39 +++++++++++++++ distcc/distcc.sh | 5 ++ distcc/distccd.conf | 8 ++++ distcc/distccd.rc | 51 ++++++++++++++++++++ 8 files changed, 355 insertions(+) create mode 100644 distcc/.footprint.i686 create mode 100644 distcc/.footprint.x86_64 create mode 100644 distcc/.md5sum.i686 create mode 100644 distcc/.md5sum.x86_64 create mode 100644 distcc/Pkgfile create mode 100644 distcc/distcc.sh create mode 100644 distcc/distccd.conf create mode 100644 distcc/distccd.rc diff --git a/distcc/.footprint.i686 b/distcc/.footprint.i686 new file mode 100644 index 000000000..71481928b --- /dev/null +++ b/distcc/.footprint.i686 @@ -0,0 +1,122 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/default/ +-rw-r--r-- root/root etc/default/distcc +drwxr-xr-x root/root etc/distcc/ +-rw-r--r-- root/root etc/distcc/clients.allow +-rw-r--r-- root/root etc/distcc/commands.allow.sh +-rw-r--r-- root/root etc/distcc/hosts +drwxr-xr-x root/root etc/profile.d/ +-rwxr-xr-x root/root etc/profile.d/distcc.sh +drwxr-xr-x root/root etc/rc.d/ +drwxr-xr-x root/root etc/rc.d/init.d/ +-rwxr-xr-x root/root etc/rc.d/init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc0.d/ +lrwxrwxrwx root/root etc/rc.d/rc0.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc1.d/ +lrwxrwxrwx root/root etc/rc.d/rc1.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc2.d/ +lrwxrwxrwx root/root etc/rc.d/rc2.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc3.d/ +lrwxrwxrwx root/root etc/rc.d/rc3.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc4.d/ +lrwxrwxrwx root/root etc/rc.d/rc4.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc5.d/ +lrwxrwxrwx root/root etc/rc.d/rc5.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc6.d/ +lrwxrwxrwx root/root etc/rc.d/rc6.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/sysconfig/ +-rw-r--r-- root/root etc/sysconfig/distccd +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/distcc +-rwxr-xr-x root/root usr/bin/distccd +-rwxr-xr-x root/root usr/bin/distccmon-text +-rwxr-xr-x root/root usr/bin/lsdistcc +-rwxr-xr-x root/root usr/bin/pump +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/distcc/ +drwxr-xr-x root/root usr/lib/distcc/bin/ +lrwxrwxrwx root/root usr/lib/distcc/bin/c++ -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/cc -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/g++ -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/gcc -> ../../bin/distcc +drwxr-xr-x root/root usr/lib/python2.7/ +drwxr-xr-x root/root usr/lib/python2.7/site-packages/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server-3.1-py2.7.egg-info +drwxr-xr-x root/root usr/lib/python2.7/site-packages/include_server/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/__init__.py (EMPTY) +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/c_extensions_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/c_extensions_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/cache_basics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/cache_basics.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compiler_defaults.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compiler_defaults.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compress_files.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compress_files.pyc +-rwxrwxr-x root/root usr/lib/python2.7/site-packages/include_server/distcc_pump_c_extensions.so +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/run.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/run.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/setup.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/setup.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/statistics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/statistics.pyc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/doc/ +drwxr-xr-x root/root usr/share/doc/distcc/ +-rw-r--r-- root/root usr/share/doc/distcc/AUTHORS +-rw-r--r-- root/root usr/share/doc/distcc/COPYING +-rw-r--r-- root/root usr/share/doc/distcc/INSTALL +-rw-r--r-- root/root usr/share/doc/distcc/NEWS +-rw-r--r-- root/root usr/share/doc/distcc/README +-rw-r--r-- root/root usr/share/doc/distcc/README.pump +-rw-r--r-- root/root usr/share/doc/distcc/TODO +drwxr-xr-x root/root usr/share/doc/distcc/example/ +-rw-r--r-- root/root usr/share/doc/distcc/example/init +-rw-r--r-- root/root usr/share/doc/distcc/example/init-suse +-rw-r--r-- root/root usr/share/doc/distcc/example/logrotate +-rw-r--r-- root/root usr/share/doc/distcc/example/xinetd +-rw-r--r-- root/root usr/share/doc/distcc/protocol-1.txt +-rw-r--r-- root/root usr/share/doc/distcc/protocol-2.txt +-rw-r--r-- root/root usr/share/doc/distcc/reporting-bugs.txt +-rw-r--r-- root/root usr/share/doc/distcc/status-1.txt +-rw-r--r-- root/root usr/share/doc/distcc/survey.txt +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/distcc.1.gz +-rw-r--r-- root/root usr/share/man/man1/distccd.1.gz +-rw-r--r-- root/root usr/share/man/man1/distccmon-text.1.gz +-rw-r--r-- root/root usr/share/man/man1/include_server.1.gz +-rw-r--r-- root/root usr/share/man/man1/pump.1.gz diff --git a/distcc/.footprint.x86_64 b/distcc/.footprint.x86_64 new file mode 100644 index 000000000..71481928b --- /dev/null +++ b/distcc/.footprint.x86_64 @@ -0,0 +1,122 @@ +drwxr-xr-x root/root etc/ +drwxr-xr-x root/root etc/default/ +-rw-r--r-- root/root etc/default/distcc +drwxr-xr-x root/root etc/distcc/ +-rw-r--r-- root/root etc/distcc/clients.allow +-rw-r--r-- root/root etc/distcc/commands.allow.sh +-rw-r--r-- root/root etc/distcc/hosts +drwxr-xr-x root/root etc/profile.d/ +-rwxr-xr-x root/root etc/profile.d/distcc.sh +drwxr-xr-x root/root etc/rc.d/ +drwxr-xr-x root/root etc/rc.d/init.d/ +-rwxr-xr-x root/root etc/rc.d/init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc0.d/ +lrwxrwxrwx root/root etc/rc.d/rc0.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc1.d/ +lrwxrwxrwx root/root etc/rc.d/rc1.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc2.d/ +lrwxrwxrwx root/root etc/rc.d/rc2.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc3.d/ +lrwxrwxrwx root/root etc/rc.d/rc3.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc4.d/ +lrwxrwxrwx root/root etc/rc.d/rc4.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc5.d/ +lrwxrwxrwx root/root etc/rc.d/rc5.d/S33distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/rc.d/rc6.d/ +lrwxrwxrwx root/root etc/rc.d/rc6.d/K44distccd -> ../init.d/distccd +drwxr-xr-x root/root etc/sysconfig/ +-rw-r--r-- root/root etc/sysconfig/distccd +drwxr-xr-x root/root usr/ +drwxr-xr-x root/root usr/bin/ +-rwxr-xr-x root/root usr/bin/distcc +-rwxr-xr-x root/root usr/bin/distccd +-rwxr-xr-x root/root usr/bin/distccmon-text +-rwxr-xr-x root/root usr/bin/lsdistcc +-rwxr-xr-x root/root usr/bin/pump +drwxr-xr-x root/root usr/lib/ +drwxr-xr-x root/root usr/lib/distcc/ +drwxr-xr-x root/root usr/lib/distcc/bin/ +lrwxrwxrwx root/root usr/lib/distcc/bin/c++ -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/cc -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/g++ -> ../../bin/distcc +lrwxrwxrwx root/root usr/lib/distcc/bin/gcc -> ../../bin/distcc +drwxr-xr-x root/root usr/lib/python2.7/ +drwxr-xr-x root/root usr/lib/python2.7/site-packages/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server-3.1-py2.7.egg-info +drwxr-xr-x root/root usr/lib/python2.7/site-packages/include_server/ +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/__init__.py (EMPTY) +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/__init__.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/basics_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/c_extensions_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/c_extensions_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/cache_basics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/cache_basics.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compiler_defaults.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compiler_defaults.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compress_files.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/compress_files.pyc +-rwxrwxr-x root/root usr/lib/python2.7/site-packages/include_server/distcc_pump_c_extensions.so +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_memoizing_node_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_analyzer_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/include_server_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/macro_eval_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/mirror_path_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_command_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file_test.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/parse_file_test.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/run.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/run.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/setup.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/setup.pyc +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/statistics.py +-rw-r--r-- root/root usr/lib/python2.7/site-packages/include_server/statistics.pyc +drwxr-xr-x root/root usr/share/ +drwxr-xr-x root/root usr/share/doc/ +drwxr-xr-x root/root usr/share/doc/distcc/ +-rw-r--r-- root/root usr/share/doc/distcc/AUTHORS +-rw-r--r-- root/root usr/share/doc/distcc/COPYING +-rw-r--r-- root/root usr/share/doc/distcc/INSTALL +-rw-r--r-- root/root usr/share/doc/distcc/NEWS +-rw-r--r-- root/root usr/share/doc/distcc/README +-rw-r--r-- root/root usr/share/doc/distcc/README.pump +-rw-r--r-- root/root usr/share/doc/distcc/TODO +drwxr-xr-x root/root usr/share/doc/distcc/example/ +-rw-r--r-- root/root usr/share/doc/distcc/example/init +-rw-r--r-- root/root usr/share/doc/distcc/example/init-suse +-rw-r--r-- root/root usr/share/doc/distcc/example/logrotate +-rw-r--r-- root/root usr/share/doc/distcc/example/xinetd +-rw-r--r-- root/root usr/share/doc/distcc/protocol-1.txt +-rw-r--r-- root/root usr/share/doc/distcc/protocol-2.txt +-rw-r--r-- root/root usr/share/doc/distcc/reporting-bugs.txt +-rw-r--r-- root/root usr/share/doc/distcc/status-1.txt +-rw-r--r-- root/root usr/share/doc/distcc/survey.txt +drwxr-xr-x root/root usr/share/man/ +drwxr-xr-x root/root usr/share/man/man1/ +-rw-r--r-- root/root usr/share/man/man1/distcc.1.gz +-rw-r--r-- root/root usr/share/man/man1/distccd.1.gz +-rw-r--r-- root/root usr/share/man/man1/distccmon-text.1.gz +-rw-r--r-- root/root usr/share/man/man1/include_server.1.gz +-rw-r--r-- root/root usr/share/man/man1/pump.1.gz diff --git a/distcc/.md5sum.i686 b/distcc/.md5sum.i686 new file mode 100644 index 000000000..08265f30e --- /dev/null +++ b/distcc/.md5sum.i686 @@ -0,0 +1,4 @@ +a1a9d3853df7133669fffec2a9aab9f3 distcc-3.1.tar.bz2 +b2f925e843744ee5dae0d3974da73418 distcc.sh +89aaf6e9072092e283465a14e83f0f94 distccd.conf +7654a17155194952f78fa2dd3772b9b9 distccd.rc diff --git a/distcc/.md5sum.x86_64 b/distcc/.md5sum.x86_64 new file mode 100644 index 000000000..08265f30e --- /dev/null +++ b/distcc/.md5sum.x86_64 @@ -0,0 +1,4 @@ +a1a9d3853df7133669fffec2a9aab9f3 distcc-3.1.tar.bz2 +b2f925e843744ee5dae0d3974da73418 distcc.sh +89aaf6e9072092e283465a14e83f0f94 distccd.conf +7654a17155194952f78fa2dd3772b9b9 distccd.rc diff --git a/distcc/Pkgfile b/distcc/Pkgfile new file mode 100644 index 000000000..b4088581d --- /dev/null +++ b/distcc/Pkgfile @@ -0,0 +1,39 @@ +# Description: Compilateur C, C++ et Objective-C distribué. +# URL: http://code.google.com/p/distcc/ +# Packager: piernov +# Maintainer: piernov + +name=distcc +version=3.1 +release=1 +source=(http://distcc.googlecode.com/files/$name-$version.tar.bz2 + distcc.sh + distccd.rc + distccd.conf) + +build() { + cd $name-$version + PYTHON=/usr/bin/python2 ./configure --prefix=/usr \ + --sysconfdir=/etc \ + --mandir=/usr/share/man \ + --without-avahi \ + --without-gtk + make INCLUDESERVER_PYTHON=/usr/bin/python2 WERROR_CFLAGS= + make INCLUDESERVER_PYTHON=/usr/bin/python2 DESTDIR=$PKG install + + mkdir -p $PKG/usr/lib/distcc/bin + cd $PKG/usr/lib/distcc/bin + for f in cc gcc c++ g++; do ln -s ../../bin/distcc $f; done + + install -D -m644 $SRC/distccd.conf $PKG/etc/sysconfig/distccd + install -D -m755 $SRC/distccd.rc $PKG/etc/rc.d/init.d/distccd + install -D -m755 $SRC/distcc.sh $PKG/etc/profile.d/distcc.sh + + mkdir -p $PKG/etc/rc.d/{rc0.d,rc1.d,rc2.d,rc3.d,rc4.d,rc5.d,rc6.d} + for i in 0 1 2 6 + do ln -s ../init.d/distccd $PKG/etc/rc.d/rc${i}.d/K44distccd + done + for i in 3 4 5 + do ln -s ../init.d/distccd $PKG/etc/rc.d/rc${i}.d/S33distccd + done +} diff --git a/distcc/distcc.sh b/distcc/distcc.sh new file mode 100644 index 000000000..50d13b2e4 --- /dev/null +++ b/distcc/distcc.sh @@ -0,0 +1,5 @@ +#!/bin/bash +if [ -d /usr/lib/distcc/bin ] && [ ! -d /usr/lib/colorgcc/bin ] && [ ! -d /usr/lib/ccache/bin ]; then + pathprepend /usr/lib/distcc/bin +fi +export CCACHE_PREFIX="distcc" diff --git a/distcc/distccd.conf b/distcc/distccd.conf new file mode 100644 index 000000000..8f90cb503 --- /dev/null +++ b/distcc/distccd.conf @@ -0,0 +1,8 @@ +# +# Parameters to be passed to distccd +# +# You must explicitly add IPs (or subnets) that are allowed to connect, +# using the --allow switch. See the distccd manpage for more info. +# +DISTCC_ARGS="--user nobody --allow 127.0.0.1" + diff --git a/distcc/distccd.rc b/distcc/distccd.rc new file mode 100644 index 000000000..29601981d --- /dev/null +++ b/distcc/distccd.rc @@ -0,0 +1,51 @@ +#!/bin/sh +######################################################################## +# Begin distccd +# +# Description : DistCC daemon boot script +# +# Authors : piernov +# +# Version : 0.1 +# +# Notes : Configurable through /etc/sysconfig/distcc +# +######################################################################## + +### BEGIN INIT INFO +# Provides: distcc +# Required-Start: $local_fs $syslog +# Required-Stop: $local_fs $syslog +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Start distcc daemon +# X-LFS-Provided-By: piernov +### END INIT INFO + +. /lib/lsb/init-functions + +if [ -f /etc/sysconfig/distccd ];then . /etc/sysconfig/distccd; fi + +case "$1" in + start) + log_info_msg "Starting distcc Daemon" + start_daemon /usr/bin/distccd --daemon ${DISTCC_ARGS} + ;; + stop) + log_info_msg "Stopping distcc Daemon" + killproc /usr/bin/distccd + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + status) + statusproc /usr/bin/distccd + ;; + *) + echo "usage: $0 {start|stop|restart|status}" +esac +exit 0 + +# End distccd -- cgit v1.2.3-70-g09d2