[arch-projects] [PATCH 4/4] fhs: disallow installing in /srv

Tom Gundersen teg at jklm.no
Sun Feb 26 08:56:57 EST 2012

/srv is admin territory, similar to /home. No package should
put stuff there.

The filesystem package does install /srv/ftp and /srv/http, but
that's my problem to worry about (and namcap can't deal with
the filesystem package anyway).

Signed-off-by: Tom Gundersen <teg at jklm.no>
 Namcap/rules/fhs.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Namcap/rules/fhs.py b/Namcap/rules/fhs.py
index 09180f6..9f555fa 100644
--- a/Namcap/rules/fhs.py
+++ b/Namcap/rules/fhs.py
@@ -26,7 +26,7 @@ class FHSRule(TarballRule):
 	description = "Checks for standard directories."
 	def analyze(self, pkginfo, tar):
 		valid_paths = [
-				'etc/', 'opt/', 'srv/',
+				'etc/', 'opt/',
 				'lib/depmod.d', 'lib/firmware', 'lib/initcpio',
 				'lib/modprobe.d', 'lib/modules', 'lib/security', 'lib/udev',
 				'usr/bin/', 'usr/include/', 'usr/lib/', 'usr/lib32/',

More information about the arch-projects mailing list