| 1 | From ca2dff0b97df0ceb8f6357de3a4375ebc09646dd Mon Sep 17 00:00:00 2001
|
| 2 | Message-Id: <ca2dff0b97df0ceb8f6357de3a4375ebc09646dd.1688572750.git.mirai@makinata.eu>
|
| 3 | From: Bruno Victal <[email protected]>
|
| 4 | Date: Wed, 5 Jul 2023 16:43:31 +0100
|
| 5 | Subject: [PATCH] Skip installing init file.
|
| 6 |
|
| 7 | The file refers to hardcoded paths.
|
| 8 | ---
|
| 9 | Makefile.am | 2 +-
|
| 10 | config/Makefile.am | 5 -----
|
| 11 | config/mactelnetd.init | 21 ---------------------
|
| 12 | config/mactelnetd.users | 12 ------------
|
| 13 | configure.ac | 2 +-
|
| 14 | 5 files changed, 2 insertions(+), 40 deletions(-)
|
| 15 | delete mode 100644 config/Makefile.am
|
| 16 | delete mode 100644 config/mactelnetd.init
|
| 17 | delete mode 100644 config/mactelnetd.users
|
| 18 |
|
| 19 | diff --git a/Makefile.am b/Makefile.am
|
| 20 | index 4e67178..264d8ea 100644
|
| 21 | |
| 22 | |
| 23 | @@ -1,5 +1,5 @@
|
| 24 | AUTOMAKE_OPTIONS = foreign
|
| 25 | -SUBDIRS = src doc config po
|
| 26 | +SUBDIRS = src doc po
|
| 27 |
|
| 28 | CFLAGS = --pedantic -Wall -std=c99 -O3
|
| 29 | LDFLAGS =
|
| 30 | diff --git a/config/Makefile.am b/config/Makefile.am
|
| 31 | deleted file mode 100644
|
| 32 | index 574a2e0..0000000
|
| 33 | |
| 34 | |
| 35 | @@ -1,5 +0,0 @@
|
| 36 | -dist_sysconf_DATA = mactelnetd.users
|
| 37 | -
|
| 38 | -install-exec-hook:
|
| 39 | - chmod 600 $(DESTDIR)$(sysconfdir)/mactelnetd.users
|
| 40 | - chown root $(DESTDIR)$(sysconfdir)/mactelnetd.users
|
| 41 | diff --git a/config/mactelnetd.init b/config/mactelnetd.init
|
| 42 | deleted file mode 100644
|
| 43 | index b7ddddf..0000000
|
| 44 | |
| 45 | |
| 46 | @@ -1,21 +0,0 @@
|
| 47 | -# mactelnetd - MAC-Telnet server
|
| 48 | -#
|
| 49 | -# The MAC-Telnet server provides telnet access via MAC addresses.
|
| 50 | -#
|
| 51 | -# Ubuntu upstart config:
|
| 52 | -
|
| 53 | -description "MAC-Telnet server"
|
| 54 | -
|
| 55 | -start on filesystem
|
| 56 | -stop on runlevel [!2345]
|
| 57 | -
|
| 58 | -respawn
|
| 59 | -respawn limit 10 5
|
| 60 | -umask 022
|
| 61 | -
|
| 62 | -pre-start script
|
| 63 | - test -O /etc/mactelnetd.users || { stop; exit 0; }
|
| 64 | - test -x /usr/sbin/mactelnetd || { stop; exit 0; }
|
| 65 | -end script
|
| 66 | -
|
| 67 | -exec /usr/sbin/mactelnetd -f
|
| 68 | diff --git a/config/mactelnetd.users b/config/mactelnetd.users
|
| 69 | deleted file mode 100644
|
| 70 | index c140e36..0000000
|
| 71 | |
| 72 | |
| 73 | @@ -1,12 +0,0 @@
|
| 74 | -# Users file for MAC-Telnetd
|
| 75 | -#
|
| 76 | -####################################################################
|
| 77 | -# WARNING: This file has passwords written in plain-text. #
|
| 78 | -# Make sure this file is owned and only readable by root. #
|
| 79 | -####################################################################
|
| 80 | -#
|
| 81 | -# Each line consists of a username and a password seperated by :.
|
| 82 | -# Usernames must be existing users from passwd.
|
| 83 | -#
|
| 84 | -# Format:
|
| 85 | -#username:password
|
| 86 | diff --git a/configure.ac b/configure.ac
|
| 87 | index c0fdda4..9d2f7d7 100644
|
| 88 | |
| 89 | |
| 90 | @@ -34,4 +34,4 @@ AC_FUNC_MALLOC
|
| 91 | AC_FUNC_STRNLEN
|
| 92 | AC_CHECK_FUNCS([alarm bzero clock_gettime getpass gettimeofday inet_ntoa memset select setenv setlocale socket strcasecmp strerror strncasecmp sysinfo uname])
|
| 93 |
|
| 94 | -AC_OUTPUT(Makefile src/Makefile doc/Makefile config/Makefile po/Makefile.in)
|
| 95 | +AC_OUTPUT(Makefile src/Makefile doc/Makefile po/Makefile.in)
|
| 96 | --
|
| 97 | 2.40.1
|
| 98 |
|