forked from statsd/statsd
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request statsd#295 from mfournier/deb-packaging-fixes
Deb packaging fixes
- Loading branch information
Showing
7 changed files
with
54 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
statsd (0.0.3-1) unstable; urgency=low | ||
|
||
* avoid running daemon as root | ||
* install docs and examples | ||
|
||
-- Marc Fournier <[email protected]> Tue, 14 May 2013 21:22:45 +0200 | ||
|
||
statsd (0.0.3) unstable; urgency=low | ||
|
||
* removed rdio references from init scripts and config | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
var/log/statsd | ||
var/log/statsd | ||
var/run/statsd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
README.md | ||
docs/ | ||
examples/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,19 @@ | ||
#!/bin/sh | ||
|
||
if [ "`stat -c %G /var/log/statsd`" != 'nogroup' ]; then | ||
chown root.nogroup /var/log/statsd | ||
chmod 770 /var/log/statsd | ||
fi | ||
set -e | ||
|
||
if [ "$1" = configure ]; then | ||
|
||
if ! getent passwd _statsd > /dev/null; then | ||
adduser --system --quiet --home /nonexistent --no-create-home \ | ||
--shell /bin/false --force-badname --group --gecos "StatsD User" _statsd | ||
fi | ||
|
||
if ! dpkg-statoverride --list /var/run/statsd >/dev/null 2>&1; then | ||
dpkg-statoverride --update --add _statsd _statsd 0755 /var/run/statsd | ||
fi | ||
|
||
if ! dpkg-statoverride --list /var/log/statsd >/dev/null 2>&1; then | ||
dpkg-statoverride --update --add _statsd _statsd 0755 /var/log/statsd | ||
fi | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
if [ "$1" = purge ]; then | ||
|
||
update-rc.d statsd remove >/dev/null || true | ||
|
||
rm -rf /var/log/statsd /var/run/statsd | ||
|
||
if dpkg-statoverride --list /var/log/statsd >/dev/null 2>&1; then | ||
dpkg-statoverride --remove /var/log/statsd | ||
fi | ||
|
||
if dpkg-statoverride --list /var/run/statsd >/dev/null 2>&1; then | ||
dpkg-statoverride --remove /var/run/statsd | ||
fi | ||
|
||
deluser --system --quiet _statsd || true | ||
delgroup --system --quiet _statsd || true | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters