Browse code

pkg/deb: switch from deprecated /var/run to /run

The FHS 3.0 [F] has deprecated /var/run in favor of /run. Current
distributions have done so for a long time (for example in Debian
since 6.0 “squeeze”), even though they provide a compatibility
symlink from /var/run to /run. But software like systemd have
started emitting warnings when using /var/run, for example for
its PIDFile directive, which pollutes the logs.

Guillem Jover authored on 25/10/2019 09:51:20 • Daniel-Constantin Mierla committed on 25/10/2019 10:00:46
Showing 20 changed files
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -164,7 +164,7 @@ install: build
164 164
 	# install /etc/default/kamailio file
165 165
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
166 166
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
167
-	# delete /var/run/kamailio dir
167
+	# delete /run/kamailio dir
168 168
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 169
 
170 170
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -164,7 +164,7 @@ install: build
164 164
 	# install /etc/default/kamailio file
165 165
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
166 166
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
167
-	# delete /var/run/kamailio dir
167
+	# delete /run/kamailio dir
168 168
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 169
 
170 170
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -164,7 +164,7 @@ install: build
164 164
 	# install /etc/default/kamailio file
165 165
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
166 166
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
167
-	# delete /var/run/kamailio dir
167
+	# delete /run/kamailio dir
168 168
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 169
 
170 170
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -164,7 +164,7 @@ install: build
164 164
 	# install /etc/default/kamailio file
165 165
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
166 166
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
167
-	# delete /var/run/kamailio dir
167
+	# delete /run/kamailio dir
168 168
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 169
 
170 170
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -164,7 +164,7 @@ install: build
164 164
 	# install /etc/default/kamailio file
165 165
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
166 166
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
167
-	# delete /var/run/kamailio dir
167
+	# delete /run/kamailio dir
168 168
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
169 169
 
170 170
 
... ...
@@ -6,7 +6,7 @@ case "$1" in
6 6
     configure)
7 7
         adduser --quiet --system --group --disabled-password \
8 8
                 --shell /bin/false --gecos "Kamailio SIP Server" \
9
-                --home /var/run/kamailio kamailio || true
9
+                --home /run/kamailio kamailio || true
10 10
 
11 11
         ;;
12 12
 
... ...
@@ -165,7 +165,7 @@ install: build
165 165
 	# install /etc/default/kamailio file
166 166
 	mkdir -p $(CURDIR)/debian/kamailio/etc/default
167 167
 	cp -f debian/kamailio.default $(CURDIR)/debian/kamailio/etc/default/kamailio
168
-	# delete /var/run/kamailio dir
168
+	# delete /run/kamailio dir
169 169
 	rm -rf $(CURDIR)/debian/kamailio/usr/local
170 170
 
171 171