Changeset 8ca172f for Makefile


Ignore:
Timestamp:
2022-12-04T17:09:00Z (2 years ago)
Author:
GitHub <noreply@…>
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)
Message:

Systemd Enhancements: Create user and directory automatically (#163)

  • configure: Simplify check for systemd, allow to request systemd support

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • configure: Add helper to be compatible with old and new systemd pc vars

Re:
https://github.com/systemd/systemd/commit/4908de44b0a0409f84a7cdc5641b114d6ce8ba03

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • systemd: Support systemd-sysusers.d

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • systemd: Define StateDirectory, create biltbee directory automatically

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • systemd: Also listen to /run/bitlbee/socket

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • systemd: Create RuntimeDirectory automatically

Signed-off-by: Björn Bidar <bjorn.bidar@…>

  • systemd: Also run regular systemd service as user

Signed-off-by: Björn Bidar <bjorn.bidar@…>

Signed-off-by: Björn Bidar <bjorn.bidar@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Makefile

    r7e90c03 r8ca172f  
    3333        @echo Installed successfully
    3434        @echo
     35ifndef SYSTEMDSYSTEMUNITDIR
    3536        @if ! [ -d $(DESTDIR)$(CONFIG) ]; then echo -e '\nThe configuration directory $(DESTDIR)$(CONFIG) does not exist yet, don'\''t forget to create it!'; fi
     37endif
    3638        @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
    3739ifdef SYSTEMDSYSTEMUNITDIR
     
    144146endif
    145147
     148ifdef SYSUSERSDIR
     149        $(INSTALL) -Dm644 init/bitlbee.sysusers $(DESTDIR)/$(SYSUSERSDIR)/bitlbee.conf
     150else
     151        @echo SYSUSERSDIR not set, not install sysusers.d files
     152endif
     153
    146154tar:
    147155        fakeroot debian/rules clean || make distclean
Note: See TracChangeset for help on using the changeset viewer.