]> git.cameronkatri.com Git - apple_cmds.git/commitdiff
remote_cmds: All compiling
authorCameron Katri <me@cameronkatri.com>
Mon, 10 May 2021 14:44:54 +0000 (10:44 -0400)
committerCameron Katri <me@cameronkatri.com>
Mon, 10 May 2021 18:59:06 +0000 (14:59 -0400)
remote_cmds/Makefile
remote_cmds/logger.tproj/Makefile
remote_cmds/talk.tproj/Makefile
remote_cmds/talkd.tproj/Makefile
remote_cmds/telnet.tproj/Makefile
remote_cmds/telnet.tproj/telnet.c
remote_cmds/telnetd.tproj/Makefile
remote_cmds/telnetd.tproj/sys_term.c
remote_cmds/tftp.tproj/Makefile
remote_cmds/tftpd.tproj/Makefile
remote_cmds/wall.tproj/Makefile

index 7347ea8027c608ceced18b6c4f944f0ea9499bba..1ffac6ff63bc9ce7dd804611b9f3a11c218f770a 100644 (file)
@@ -1,12 +1,6 @@
-Project = remote_cmds
+SUBDIR= \
+       logger.tproj\
+       talk.tproj talkd.tproj telnet.tproj telnetd.tproj tftp.tproj\
+       tftpd.tproj wall.tproj
 
-ifeq "$(RC_TARGET_CONFIG)" "iPhone"
-SubProjects = telnetd.tproj
-else
-SubProjects = \
-        logger.tproj\
-        talk.tproj talkd.tproj telnet.tproj telnetd.tproj tftp.tproj\
-        tftpd.tproj wall.tproj
-endif
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.subdir.mk>
index 002cb56fa7b91665509c4e70992cb6b78fad806a..b91335469b0fafa462ea0c1fde4a67f06887cda0 100644 (file)
@@ -1,11 +1,3 @@
-Project = logger
-Install_Dir = /usr/bin
+PROG=  logger
 
-CFILES = logger.c
-MANPAGES = logger.1
-
-Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic
-Extra_CC_Flags += -D__FBSDID=__RCSID
-Extra_LD_Flags = -dead_strip
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.prog.mk>
index 47e36318695f8dca0aa3204ea8245cdb764f344a..ea9860ee06cd4430289cf4f7e5800452b4fc3e0a 100644 (file)
@@ -1,14 +1,8 @@
-Project = talk
-Install_Dir = /usr/bin
+PROG=  talk
+SRCS=  ctl_transact.c ctl.c display.c get_addrs.c \
+       get_iface.c get_names.c init_disp.c invite.c \
+       io.c look_up.c msgs.c talk.c
 
-HFILES = talk.h talk_ctl.h
-CFILES = ctl.c ctl_transact.c display.c get_addrs.c get_names.c\
-         get_iface.c init_disp.c invite.c io.c look_up.c msgs.c talk.c
-MANPAGES = talk.1
+LDADD=-lncursesw
 
-Extra_CC_Flags = -Wall -Werror -fPIE
-Extra_LD_Flags = -dead_strip -pie
-
-Extra_LD_Libraries = -lcurses
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.prog.mk>
index f67b40b448e6fc770055cefc1e7ec7c2d56c5b0b..dd14031b295d83b9616b48fef51d5bddd2ffe52a 100644 (file)
@@ -1,14 +1,8 @@
-Project = ntalkd
-Install_Dir = /usr/libexec
+PROG=  talkd
+MAN=   ntalkd.8
+SRCS=  announce.c print.c process.c \
+       table.c talkd.c ttymsg.c
 
-HFILES = talkd.h
-CFILES = announce.c print.c process.c table.c talkd.c ../wall.tproj/ttymsg.c
-MANPAGES = ntalkd.8
-LAUNCHD_PLISTS =  ntalk.plist
+.PATH: ../wall.tproj
 
-Extra_CC_Flags = -Wall -Werror -fPIE
-Extra_LD_Flags = -dead_strip -pie
-
-Extra_CC_Flags += -D__FBSDID=__RCSID
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.prog.mk>
index dc8569be1e539ebba11135327a9579eb80333169..281feaf2e8a3882017c8629d470697f642acdd7a 100644 (file)
@@ -1,18 +1,14 @@
-Project = telnet
-Install_Dir = /usr/local/bin
+PROG=  telnet
+SRCS=  authenc.c commands.c main.c network.c \
+       ring.c sys_bsd.c telnet.c terminal.c tn3270.c \
+       utilities.c genget.c auth.c misc.c
 
-HFILES = externs.h fdset.h general.h krb4-proto.h ring.h types.h\
-         defines.h misc.h misc-proto.h
-CFILES = authenc.c commands.c main.c network.c ring.c sys_bsd.c\
-         telnet.c terminal.c tn3270.c utilities.c
+CFLAGS+=-DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK \
+       -DAUTHENTICATION -DSKEY -DIPSEC -DINET6 -DFORWARD  \
+       -I${.CURDIR}/../../lib
+   # -DENCRYPTION -DKRB4
+LDADD=-lncursesw -lipsec
 
-Extra_CC_Flags = -Wall -Werror -Wno-string-plus-int -fPIE
-Extra_CC_Flags += -D__FBSDID=__RCSID
-Extra_LD_Flags = -dead_strip -pie
+.PATH: ../../lib/libtelnet
 
-Extra_CC_Flags += -DTERMCAP -DKLUDGELINEMODE -DUSE_TERMIO -DENV_HACK \
-               -DAUTHENTICATION -DKRB5 -DSKEY -DIPSEC -DINET6 -DFORWARD 
-               # -DENCRYPTION -DKRB4
-Extra_LD_Libraries = -lcurses -lkrb4 -lkrb5 -lipsec -ltelnet
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.prog.mk>
index 541cf9bff935fef56049e673ad0f22ba0227e2ea..2e63f8d75ec61e711e7e805ab2f4a17ce9653c9e 100644 (file)
@@ -667,7 +667,7 @@ is_unique(char *name, char **as, char **ae)
        return (1);
 }
 
-#ifdef TERMCAP
+#ifndef        TERMCAP
 char termbuf[1024];
 
 /*ARGSUSED*/
index c3f7feb62cd3230523784717125e14396fea130b..356d977b5735346754a616165bc157db1aba83c9 100644 (file)
@@ -1,50 +1,16 @@
-Project = telnetd
-ifeq "$(RC_TARGET_CONFIG)" "iPhone"
-Install_Dir = /usr/libexec
-else
-Install_Dir = /usr/local/libexec
-endif
+PROG=  telnetd
+MAN=   telnetd.8
 
-HFILES = defs.h ext.h pathnames.h telnetd.h
-CFILES = global.c slc.c state.c sys_term.c telnetd.c\
-         termstat.c utility.c
-ifeq "$(RC_TARGET_CONFIG)" "iPhone"
-LAUNCHD_PLISTS = telnet.plist
-endif
+SRCS=  global.c slc.c state.c sys_term.c telnetd.c \
+       termstat.c utility.c getent.c
 
-Extra_CC_Flags = -Wall -Werror -Wno-string-plus-int -fPIE
-Extra_CC_Flags += -D__FBSDID=__RCSID
-Extra_LD_Flags = -dead_strip -pie
+BINDIR=/usr/libexec
 
-Extra_CC_Flags += -DNO_UTMP -DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO \
-               -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DINET6 \
-               # -DAUTHENTICATION -DENCRYPTION
-Extra_LD_Libraries = -lcurses -ltelnet
+CFLAGS+= -DNO_UTMP -DLINEMODE -DKLUDGELINEMODE -DUSE_TERMIO \
+       -DDIAGNOSTICS -DOLD_ENVIRON -DENV_HACK -DINET6 \
+       -I${.CURDIR}/../../lib
+LDADD=-lncursesw
 
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.PATH: ../../lib/libtelnet
 
-after_install:
-ifeq "$(RC_TARGET_CONFIG)" "iPhone"
-       /usr/libexec/PlistBuddy -x \
-               -c "Delete :Disabled" \
-               -c "Add :PosixSpawnType string Interactive" \
-               -c "Delete :SessionCreate" \
-               -c "Set :Sockets:Listeners:Bonjour false" \
-               -c "Add :Sockets:Listeners:SockFamily string IPv4" \
-               -c "Add :Sockets:Listeners:SockNodeName string localhost" \
-               "$(DSTROOT)/System/Library/LaunchDaemons/telnet.plist"
-ifeq "$(RC_PLATFORM_NAME)" "BridgeOS"
-       /usr/libexec/PlistBuddy -x \
-               -c "Delete :Sockets:Listeners:SockNodeName" \
-               -c "Delete :Sockets:Listeners:SockFamily" \
-               "$(DSTROOT)/System/Library/LaunchDaemons/telnet.plist"
-endif
-       plutil -convert binary1 "$(DSTROOT)/System/Library/LaunchDaemons/$(LAUNCHD_PLISTS)"
-endif
-       /usr/bin/codesign --force --sign - --entitlements entitlements.plist $(DSTROOT)$(Install_Dir)/$(Project)
-
-# Install a special launchd plist for the DebugDiskImage (38885624)
-ifeq "$(RC_TARGET_CONFIG)" "iPhone"
-       plutil -replace ProgramArguments -json '["/var/personalized_debug/usr/libexec/telnetd","-p","/var/personalized_debug/usr/bin/login"]' -o "$(DSTROOT)/System/Library/LaunchDaemons/telnet.debug.plist" "$(DSTROOT)/System/Library/LaunchDaemons/telnet.plist"
-       plutil -replace Label -string com.apple.telnetd.debug "$(DSTROOT)/System/Library/LaunchDaemons/telnet.debug.plist"
-endif
+.include <bsd.prog.mk>
index 23da55b9561818cd43cecd15c4da6d3f2225de7f..d47d541297f1b29fdd33273de74057d39eb7a1b8 100644 (file)
@@ -423,7 +423,7 @@ spcset(int func, cc_t *valp, cc_t **valpp)
  * Returns the file descriptor of the opened pty.
  */
 char alpha[] = "0123456789abcdefghijklmnopqrstuv";
-char line[16];
+//char line[16];
 
 int
 getpty(int *ptynum __unused, int *slavepty)
index 6ed62a0ab3de51de066cfa7f82c183c50d65bb76..b6ea09089ec00cb820628ad3a17e3ba89e43e80e 100644 (file)
@@ -1,12 +1,6 @@
-Project = tftp
+PROG=  tftp
+SRCS=  main.c tftp.c tftpsubs.c
 
-HFILES = extern.h tftpsubs.h
-CFILES = main.c tftp.c tftpsubs.c
-MANPAGES = tftp.1
+LDADD=-ledit
 
-Extra_CC_Flags = -Wall -Werror -fPIE
-Extra_CC_Flags += -D__FBSDID=__RCSID
-Extra_LD_Flags = -dead_strip -pie
-Extra_LD_Flags += -ledit
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
+.include <bsd.prog.mk>
index e48f4849ee922ce3794ea420313a20fa2cd49f17..60b28532e51145bcc41a4b731ee191da556efb98 100644 (file)
@@ -1,16 +1,9 @@
-Project = tftpd
-Install_Dir = /usr/libexec
+PROG=  tftpd
+SRCS=  tftpd.c tftpsubs.c
+MAN=   tftpd.8
 
-HFILES = tftpsubs.h
-CFILES = tftpd.c ../tftp.tproj/tftpsubs.c
-MANPAGES = tftpd.8
-LAUNCHD_PLISTS = tftp.plist
+BINDIR=/usr/libexec
 
-Extra_CC_Flags = -Wall -Werror -fPIE
-Extra_CC_Flags += -D__FBSDID=__RCSID
-Extra_LD_Flags = -dead_strip -pie
+.PATH: ../tftp.tproj
 
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
-
-after_install:
-       $(MKDIR) "$(DSTROOT)/private/tftpboot"
+.include <bsd.prog.mk>
index 08da621dea58a3f057bb821cc9720c5a661f43df..06e0547dc0600364f41844251d8fedf8a41d9faf 100644 (file)
@@ -1,16 +1,4 @@
-Project = wall
-Install_Dir = /usr/bin
+PROG=  wall
+SRCS=  ttymsg.c wall.c
 
-HFILES = ttymsg.h
-CFILES = ttymsg.c wall.c
-MANPAGES = wall.1
-
-Extra_CC_Flags = -Wall -Werror -mdynamic-no-pic
-Extra_LD_Flags = -dead_strip
-
-Extra_CC_Flags += -D__FBSDID=__RCSID
-
-include $(MAKEFILEPATH)/CoreOS/ReleaseControl/BSDCommon.make
-
-#Install_Program_Mode = 02555
-#Install_Program_Group = tty
+.include <bsd.prog.mk>