Changeset 8ca172f
- Timestamp:
- 2022-12-04T17:09:00Z (2 years ago)
- Branches:
- master
- Children:
- 2bd8f39
- Parents:
- 7e90c03
- git-author:
- Björn Bidar <bjorn.bidar@…> (04-12-22 17:09:00)
- git-committer:
- GitHub <noreply@…> (04-12-22 17:09:00)
- Files:
-
- 1 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
Makefile
r7e90c03 r8ca172f 33 33 @echo Installed successfully 34 34 @echo 35 ifndef SYSTEMDSYSTEMUNITDIR 35 36 @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi 37 endif 36 38 @if ! [ -e $(DESTDIR)$(ETCDIR)/bitlbee.conf ]; then echo -e '\nNo files are installed in '$(DESTDIR)$(ETCDIR)' by make install. Run make install-etc to do that.'; fi 37 39 ifdef SYSTEMDSYSTEMUNITDIR … … 144 146 endif 145 147 148 ifdef SYSUSERSDIR 149 $(INSTALL) -Dm644 init/bitlbee.sysusers $(DESTDIR)/$(SYSUSERSDIR)/bitlbee.conf 150 else 151 @echo SYSUSERSDIR not set, not install sysusers.d files 152 endif 153 146 154 tar: 147 155 fakeroot debian/rules clean || make distclean -
configure
r7e90c03 r8ca172f 19 19 includedir='$prefix/include/bitlbee/' 20 20 systemdsystemunitdir='' 21 sysusersdir='' 21 22 libevent='/usr/' 22 23 pidfile='/var/run/bitlbee.pid' … … 55 56 56 57 pie=1 58 59 systemd=auto 57 60 58 61 arch=$(uname -s) … … 129 132 --plugindir=... $plugindir 130 133 --systemdsystemunitdir=... $systemdsystemunitdir 134 --sysusersdir $sysusersdir 131 135 --pidfile=... $pidfile 132 136 --config=... $config … … 157 161 $ssl 158 162 --external_json_parser=0/1/auto Use External JSON parser $external_json_parser 163 --systemd=0/1 Enable/disable systemd support $systemd 159 164 160 165 … … 750 755 fi 751 756 752 if [ -z "$systemdsystemunitdir" ]; then 753 if $PKG_CONFIG --exists systemd; then 754 systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd) 755 fi 756 fi 757 if [ -n "$systemdsystemunitdir" ]; then 758 if [ "$systemdsystemunitdir" != "no" ]; then 759 echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings 760 fi 757 if [ ! "$systemd" = 0 ]; then 758 if ! $PKG_CONFIG --exists systemd ; then 759 if [ -n "$systemdsystemunitdir" ] || [ "$systemd" -eq 1 ]; then 760 echo "systemd requested but not found" 761 exit 1 762 else 763 systemd=0 764 fi 765 fi 766 fi 767 768 pkgconf_systemd_var() { 769 # First try deprecated variable, use newer variable if not found 770 if $PKG_CONFIG --print-variables systemd | grep -q $1 ; then 771 $PKG_CONFIG --variable=$1 systemd 772 else 773 $PKG_CONFIG --variable=$2 systemd 774 fi 775 } 776 777 if [ "$systemd" -eq 1 ]; then 778 if [ -z "$systemdsystemunitdir" ]; then 779 systemdsystemunitdir=$(pkgconf_systemd_var systemdsystemunitdir systemd_system_unit_dir) 780 fi 781 if [ -z "$tmpfiles_dir" ] ; then 782 tmpfilesdir=$(pkgconf_systemd_var tmpfilesdir tmpfiles_dir) 783 fi 784 if [ -z "$sysusersdir" ] ; then 785 sysusersdir=$(pkgconf_systemd_var sysusersdir sysusers_dir) 786 fi 787 788 echo "SYSTEMDSYSTEMUNITDIR=$systemdsystemunitdir" >> Makefile.settings 789 echo "SYSUSERSDIR=$sysusersdir" >> Makefile.settings 761 790 fi 762 791 … … 1005 1034 fi 1006 1035 1007 if [ -n "$systemdsystemunitdir"]; then1036 if [ "$systemd" -eq 1 ]; then 1008 1037 echo ' systemd enabled.' 1009 1038 else -
init/bitlbee.service.in
r7e90c03 r8ca172f 5 5 ExecStart=@sbindir@bitlbee -F -n 6 6 KillMode=process 7 StateDirectory=bitlbee 8 RuntimeDirectory=bitlbee 9 User=bitlbee 7 10 8 11 [Install] -
init/bitlbee.socket
r7e90c03 r8ca172f 4 4 [Socket] 5 5 ListenStream=6667 6 ListenStream=%t/bitlbee/socket 6 7 BindToDevice=lo 7 8 Accept=yes -
init/bitlbee@.service.in
r7e90c03 r8ca172f 7 7 StandardError=syslog 8 8 User=bitlbee 9 StateDirectory=bitlbee 10 RuntimeDirectory=bitlbee
Note: See TracChangeset
for help on using the changeset viewer.