summaryrefslogtreecommitdiff
path: root/packaging
Commit message (Collapse)AuthorAgeFilesLines
* Add help for systemd-based RH-like distro usersVincent Legoll2015-11-041-0/+4
| | | | | | | | | | Recent RedHat-like distributions run distcc through systemd and the configuration is not taken from this file, so add a comment that put the poor user in the right direction. This patch is RFC here because the downstream bug has not been fixed and is going to be EOL'ed See: https://bugzilla.redhat.com/show_bug.cgi?id=1187517
* Apply fix for distcc issue 114 ↵fergus.henderson2012-07-111-0/+1
| | | | | | | | <http://code.google.com/p/distcc/issues/detail?id=114> sent by Ying Chen <companycy@gmail.com>: ensure that lsdistcc.1.gz gets included in the RPM package.
* Apply patch from Tal <tal.bav@gmail.com>:fergus.henderson2009-12-301-1/+1
| | | | | | | In packaging/RedHat/init.d/distcc the executable is once refereed to using the variable EXEC, and once as with the explicit expected name. Change it to always use the EXEC variable.
* Fix a non-portability in rpm.sh:fergus.henderson2009-02-171-1/+1
| | | | | | | | | | | | | | | use "trap ... HUP" rather than "trap ... SIGHUP". The Posix.1 standard <http://www.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html#trap> says: The condition can be EXIT, 0 (equivalent to EXIT), or a signal specified using a symbolic name, without the SIG prefix, as listed in the tables of signal names in the <signal.h> header [...]; for example, HUP, INT, QUIT, TERM. Implementations may permit names with the SIG prefix or ignore case in signal names as an extension. Previously, the code was relying on this optional extension.
* Fix wrong description for uploaded distcc-<version>.tar{.gz,.bz2} files.fergus.henderson2008-06-241-1/+5
| | | | Reviewers: Craig Silverstein
* Change the deb.sh and rpm.sh scripts to remove old .deb or .rpmfergus.henderson2008-06-192-3/+14
| | | | | | | | | | | | | | | files (for the same package and version) before generating the new ones. Similarly change "make install-deb" and "make upload-dist" so that they are more selective in which files they install. This fixes a bug where "make install-deb" tried to install the wrong .deb files, because it just did "rpm -i *.deb", and there can be old .deb files lying around. It also fixes a similar problem in "make upload-dist". Also, add a "tags" target to the Makefile. Reviewers: Craig Silverstein
* Fix a missing word in a comment.fergus.henderson2008-06-181-1/+1
|
* Update the html version of the man pages, based on the .1 updates.Craig Silverstein2008-06-091-0/+1
| | | | | | Add include_server, which is a new man page. Update the Makefile to know about the new man page, include it in the distribution, etc. Also update the rpm spec to include it too.
* Fix a bug where the "pump" man page was not included in the RPMfergus.henderson2008-05-301-0/+1
| | | | | | | | | | | and Debian packages. Also, fix a bug where the Makefile rules for building HTML files were not working when srcdir != builddir. Tested by "make install-deb; man pump". Reviewers: Craig Silverstein
* Update install-message wording.Craig Silverstein2008-05-231-2/+2
| | | | Reviewed by fergus
* Do not include 127.0.0.1 in clients.allow by default,fergus.henderson2008-05-232-6/+25
| | | | | | | | | | | | | | | | | because it is a security risk: it may allow other users on the machine to execute arbitrary code as the distcc user. Instead, leave clients.allow empty by default, and require the system admistrator to edit clients.allow manually, if they want to use distcc in TCP mode. We still install distccd as a service, but distccd will exit immediately unless you've already added some hosts to clients.allow. Reviewers: Craig Silverstein
* Fix a bug where "/etc/init.d/distcc stop" was not working when you hadfergus.henderson2008-05-181-1/+1
| | | | | | | | | | | | | | | | | | installed a new distcc. It wasn't working properly because the call to "start-stop-daemon --stop" used the "--exec /usr/bin/distccd" option, and (perhaps due to a bug in start-stop-daemon?) that option checks /proc/<pid>/exe against /usr/bin/distccd by comparing inode numbers. Comparing inode numbers doesn't work, because when we install a new distccd, we create a fresh file with a new inode number, so the inode number used by running processes won't match the inode number of /usr/bin/distccd on disk after you've installed a new version. The fix was to remove the "--exec /usr/bin/distccd" option from the call to start-stop-daemon. We're already passing "--name distccd", which is sufficient to indentify the running distccd processes. Reviewers: Craig Silverstein
* Fix problems where distcc's init script was using the wrongfergus.henderson2008-05-141-5/+5
| | | | | | exit status and giving misleading messages as a result. Reviewers: Craig Silverstein
* Increase the set of commands allowed by default:fergus.henderson2008-05-141-0/+6
| | | | | | allow cc, c++, c89, c99, and g++, in addition to gcc. Reviewers: Craig Silverstein
* Fix a bug in my changes to add 'commands.allow.sh' that broke the Debianfergus.henderson2008-05-091-1/+0
| | | | | | | | | | | | distribution. There was a spurious assignment to CMDLIST. CMDLIST used for the output of /etc/distcc/commands.allow.sh; it is supposed to be set to /var/state/distcc/commands.allow. But due to the spurious assignment, CMDLIST was being set to /etc/distcc/commands.allow.sh, causing the script to overwrite itself. Reviewers: Craig Silverstein
* Fix so that include server record can be found.klarlund2008-05-091-1/+1
|
* Revise the doc/example directory:fergus.henderson2008-05-082-2/+3
| | | | | | | | | | | | | - Add README file to the doc/example directory. - Add files in doc/example for every system configuration file installed or modified by the RPM installation script (rpm.spec). - Update some comments in rpm.spec. - Some whitespace changes to doc/example/logrotate and packaging/RedHat/logrotate.d/distcc to make those two files match. - Copy warning from packaging/RedHat/xinetd.d/distcc to doc/examples/xinetd. Reviewers: Craig Silverstein
* Fix some bugs in the googlecode-upload script, and modify the uploadCraig Silverstein2008-04-191-7/+8
| | | | | | | | | | | target in the Makefile to call it. Also added googlecode_upload.py to the dist tarball. Also update the version number to prerelease2. As part of testing this change, I actually uploaded the tarballs and rpm files to code.google.com. Reviewed by fergus@google.com
* A bunch of changes to the configuration files and installation:fergus.henderson2008-04-186-56/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (1) Remove the Google crosstool-specific stuff from packaging/RedHat/init.d/distcc; instead, make it source a new configuration file "commands.allow.sh". (2) Install default versions of all the configuration files in $(sysconfdir), i.e. /etc: distcc/hosts, distcc/clients.allow, commands.allow.sh, and defaults/distcc. (3) Fix a bug in Makefile.in: "make install" didn't work when you configured with srcdir != builddir. Added "$(srcdir)/" in various places to make it work. (There's similar problems with "make dist", but I gave up on those for now.) (4) Add "install-deb" rule, to install the ".deb" files. (5) Don't run install-for-include-server-tests as part of "make install". That target is part of "make check", not "make install". (6) Add missing dependency on "include-server" to "pump-check" rule. (7) Remove some bash-isms from the "init.d/distcc" script. Tested by running "make install-deb" followed by "distcc /usr/bin/gcc -c foo.c" - this now works "out-of-the-box"! :-> Also ran "make maintainer-check" and "make pump-check".
* Add distcc-specific code to googlecode_upload. This allows us toCraig Silverstein2008-04-181-28/+139
| | | | | | | | | | | | | | | | | upload all the package files we create in one fell swoop (they must be specified on the commandline). We figure out the summary to give to each file and the label to apply, and then upload each in turn. I've also turned off the feature to figure out the name and password directly from the local svn repository, because that feature is broken (alas), with the current python-subversion bindings. Instead, I prompt for them, but at least it's only once per upload as opposed to once per file! Not yet tested (will do so when I add to the Makefile to actually use it). Reviewed by fergus@google.com
* Add googlecode_upload.py, a script to help upload tarballs and packageCraig Silverstein2008-04-181-0/+312
| | | | | | | | | | | | files to the Google Code location of distcc. This is the version as downloaded from the web, at http://support.googlecode.com/svn-history/r57/trunk/scripts/googlecode_upload.py After this pristine version is checked in, we'll hack on it to add some distcc-specific features (multiple uploads, etc). We'll also add it to the Makefile at that time, both to use ('make upload') and as part of the distribution (hey, why not).
* Add 'make rpm' to make the rpm files for this project (much like 'makeCraig Silverstein2008-04-173-0/+373
| | | | | | | | | | | | | | | | | | | | | | | | | dist' makes a tar.gz file), and 'make deb' to make the deb files. 'make alldist' will make all three (well, four): .tar.gz, .tar.bz2, .rpm, and .deb. The rpm.spec file that's used is based on the old distcc.spec file, which is now deleted. However, it's reordered to look a bit more like other spec files for Google projects, removes the obsolete 'include-server' package (that's now part of the distcc package proper), and takes out all the ChangeLog entries that don't relate to the spec file in particular. I also added a script, rpm.sh, to build the rpm file, which is a combination of the rpm.sh script used to build other google projects, and the existing build-distcc.sh, which is now deleted. Mostly it just calls rpmbuild with the right flags. deb.sh could have re-done all the work that rpm.spec and rpm.sh does, but instead we just use "alien" to convert the rpm to a deb file. Tested by installing the deb files (both client and server) on my home machine and then running 'make maintainer-installcheck'. Reviewed by fergus@google.com
* The first step of moving everything in the distcc directory to the topCraig Silverstein2008-04-113-0/+315
level. I'm doing this in two stages, because I don't understand svn enough to be confident to do it in one. This first stage just copies all the files from distcc/FOO to FOO. Now there are two copies of each file under distcc; the Makefile/etc uses the one in distcc and ignores the one at the top level. The next commit will delete everything under distcc, and rewrite the Makefile/etc to use the top-level versions instead.