Unindented comments in makefile to make them not printed when make runs
このコミットが含まれているのは:
コミット
376b2762ed
27
Makefile
27
Makefile
|
@ -1,19 +1,20 @@
|
||||||
|
# Note: Comments are unindented to not be printed during the installation
|
||||||
|
|
||||||
.PHONY: install uninstall
|
.PHONY: install uninstall
|
||||||
CLASS_FILE = /etc/login.conf.d/i2pd
|
CLASS_FILE = /etc/login.conf.d/i2pd
|
||||||
|
|
||||||
install:
|
install:
|
||||||
# This command verifies if the group _i2pd exists. If it doesn't, it
|
# This command verifies if the group _i2pd exists. If it doesn't, it creates
|
||||||
# creates it with gid 838.
|
# it with gid 838.
|
||||||
groupinfo -e _i2pd || groupadd -g 838 _i2pd
|
groupinfo -e _i2pd || groupadd -g 838 _i2pd
|
||||||
|
|
||||||
# These commands verify if the user _i2pd exists. If it doesn't, it
|
# These commands verify if the user _i2pd exists. If it doesn't, it creates
|
||||||
# creates it with uid 838, default group 838 (which is _i2pd), login
|
# it with uid 838, default group 838 (which is _i2pd), login class "i2pd"
|
||||||
# class "i2pd" (created manually before running this script), comment
|
# (created manually before running this script), comment "i2pd account",
|
||||||
# "i2pd account", home directory /var/lib/i2pd, and login shell
|
# home directory /var/lib/i2pd, and login shell /sbin/nologin (which forbids
|
||||||
# /sbin/nologin (which forbids it from loging in).
|
# it from loging in). The mkdir and chown are used instead of the -m option
|
||||||
# The mkdir and chown are used instead of the -m option of useradd in
|
# of useradd in case /var/lib/i2pd already existed before the execution of
|
||||||
# case /var/lib/i2pd already existed before the execution of this make
|
# this make target.
|
||||||
# target.
|
|
||||||
mkdir -p /var/lib/i2pd
|
mkdir -p /var/lib/i2pd
|
||||||
userinfo -e _i2pd || useradd -u 838 -g 838 -L i2pd \
|
userinfo -e _i2pd || useradd -u 838 -g 838 -L i2pd \
|
||||||
-c "i2pd account" -d /var/lib/i2pd -s /sbin/nologin _i2pd
|
-c "i2pd account" -d /var/lib/i2pd -s /sbin/nologin _i2pd
|
||||||
|
@ -21,7 +22,7 @@ install:
|
||||||
|
|
||||||
# This command adds a new login class allowing _i2pd to open more files
|
# This command adds a new login class allowing _i2pd to open more files
|
||||||
# simultaneously if the version of OpenBSD is 7.1 or newer. For older
|
# simultaneously if the version of OpenBSD is 7.1 or newer. For older
|
||||||
# versions, the modification should be done manually in /etc/login.conf.
|
# versions, the modification needs to be done manually in /etc/login.conf.
|
||||||
if [ $$(echo "$$(uname -r) >= 7.1" | bc) = 1 ]; then \
|
if [ $$(echo "$$(uname -r) >= 7.1" | bc) = 1 ]; then \
|
||||||
echo "i2pd:\\" > $(CLASS_FILE); \
|
echo "i2pd:\\" > $(CLASS_FILE); \
|
||||||
echo "\t:openfiles-cur=102400:\\" >> $(CLASS_FILE); \
|
echo "\t:openfiles-cur=102400:\\" >> $(CLASS_FILE); \
|
||||||
|
@ -29,8 +30,8 @@ install:
|
||||||
echo "\t:tc=daemon:" >> $(CLASS_FILE); \
|
echo "\t:tc=daemon:" >> $(CLASS_FILE); \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# This command copies the RC script in the RC script folder to allow
|
# This command copies the RC script in the RC script folder to allow I2Pd to
|
||||||
# I2Pd to be managed by the service supervisor.
|
# be managed by the service supervisor.
|
||||||
install -o root -g bin -m 555 i2pd /etc/rc.d/i2pd
|
install -o root -g bin -m 555 i2pd /etc/rc.d/i2pd
|
||||||
|
|
||||||
|
|
||||||
|
|
読み込み中…
新しいイシューから参照