source: freewrt/package/mgetty/patches/mgetty.patch@ 428f140

freewrt_1_0 freewrt_2_0
Last change on this file since 428f140 was 475ad56, checked in by Waldemar Brodkorb <wbx@…>, 20 years ago

add OpenWrt trunk revision 3830.

git-svn-id: svn://www.freewrt.org/trunk/freewrt@1 afb5a338-a214-0410-bd46-81f09a774fd1

  • Property mode set to 100644
File size: 3.4 KB
  • mgetty-1.1.

    Only in mgetty-1.1.31: .prepared
    diff -ur mgetty-1.1.31-old/Makefile mgetty-1.1.31/Makefile
    old new  
    164164#
    165165# if your systems doesn't have one, use the shell script that I provide
    166166# in "inst.sh" (taken from X11R5). Needed on IRIX5.2
    167 INSTALL=install -c -o bin -g bin
     167STRIP=$(STAGING_DIR)sstrip
     168INSTALL=install -c -o root -g root
     169#INSTALL=install -c -o bin -g bin
    168170#INSTALL=install -c -o root -g wheel            # NeXT/BSD
    169171#INSTALL=/usr/ucb/install -c -o bin -g bin      # AIX, Solaris 2.x
    170172#INSTALL=installbsd -c -o bin -g bin            # OSF/1, AIX 4.1, 4.2
     
    216218# (it's possible to run faxrunq(d) as root, but the FAX_OUT_USER
    217219#  MUST NOT BE root or any other privileged account).
    218220#
    219 FAX_OUT_USER=fax
     221FAX_OUT_USER=root
    220222#
    221223#
    222224# Where section 1 manual pages should be placed
     
    416418        ./mksed >sedscript
    417419        chmod 700 sedscript
    418420
    419 mksed: mksed.c policy.h Makefile
     421REALGCC:=/usr/bin/gcc
     422mksed: mksed.c policy.h Makefile
     423        ( echo $(REALGCC); $(MAKE) "CC=$(REALGCC)" "CFLAGS=$(CFLAGS)" mksed-wrong;\
     424        );
     425
     426mksed-wrong: mksed.c policy.h Makefile
    420427        $(CC) $(CFLAGS) -DBINDIR=\"$(BINDIR)\" -DSBINDIR=\"$(SBINDIR)\" \
    421428                -DLIBDIR=\"$(LIBDIR)\" \
    422429                -DCONFDIR=\"$(CONFDIR)\" \
     
    590597        -test -d $(SBINDIR) || ( ./mkidirs $(SBINDIR) ; chmod 755 $(SBINDIR) )
    591598        -mv -f $(SBINDIR)/mgetty $(SBINDIR)/mgetty.old
    592599        -mv -f $(SBINDIR)/sendfax $(SBINDIR)/sendfax.old
    593         $(INSTALL) -s -m 700 mgetty $(SBINDIR)
    594         $(INSTALL) -s -m 755 sendfax $(SBINDIR)
     600        $(INSTALL) -m 700 mgetty $(SBINDIR)
     601        $(STRIP) $(SBINDIR)/mgetty
     602        $(INSTALL) -m 755 sendfax $(SBINDIR)
     603        $(STRIP) $(SBINDIR)/sendfax
    595604#
    596605# data files + directories
    597606#
     
    653662        if [ ! -z "$(INSTALL_MECHO)" ] ; then \
    654663            cd compat ; \
    655664            $(CC) $(CFLAGS) -o mg.echo mg.echo.c && \
    656             $(INSTALL) -s -m 755 mg.echo $(BINDIR) ; \
     665            $(INSTALL) -m 755 mg.echo $(BINDIR) && \
     666            $(STRIP) $(BINDIR)/mg.echo ; \
    657667        fi
    658668
    659669#
  • g3/Makefile

    Only in mgetty-1.1.31-old: Makefile.orig
    Only in mgetty-1.1.31-old: Makefile.rej
    diff -ur mgetty-1.1.31-old/g3/Makefile mgetty-1.1.31/g3/Makefile
    old new  
    4040# install programs
    4141#
    4242        for f in $(G3_PROGRAMS) ; do \
    43                 $(INSTALL) -s -m 755 $$f $(BINDIR) ; \
     43                $(INSTALL) -m 755 $$f $(BINDIR) ; \
     44                $(STRIP) $(BINDIR)/$$f ; \
    4445        done
    4546#
    4647# make symlink for "g3topbm" (so third-party fax viewers won't fail)
  • mgetty-1.1.

    diff -ur mgetty-1.1.31-old/logfile.c mgetty-1.1.31/logfile.c
    old new  
    327327    }
    328328    else                /* ERROR or FATAL */
    329329    {
    330         fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: %s",
     330        fprintf(log_fp, "\n%02d/%02d %02d:%02d:%02d %s %s: #%d",
    331331                             tm->tm_mon+1,  tm->tm_mday,
    332332                             tm->tm_hour, tm->tm_min, tm->tm_sec,
    333333                             log_infix, ws,
    334                              ( errnr <= sys_nerr ) ? sys_errlist[errnr]:
    335                              "<error not in list>" );
     334                             errnr );
    336335#ifdef SYSLOG
    337336        syslog( level == L_FATAL? LOG_ALERT: LOG_ERR, "%s: %m", ws );
    338337#endif
Note: See TracBrowser for help on using the repository browser.