Update of /cvsroot/leaf/src/bering-uclibc/apps/mgetty
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv401

Added Files:
        buildtool.cfg buildtool.mk dialin.config issue.mgetty 
        login.config mgetty.config mgetty.cron_daily 
Log Message:
buildtool setup for mgetty


--- NEW FILE: mgetty.cron_daily ---
#!/bin/sh
# Save daily LOGDEPTH versions of syslogfile
LOGDEPTH=4
# syslogfile name
LOGFILE=/var/log/mgetty

if [ -f $LOGFILE ]; then
        savelog -g wheel -m 640 -u root -c $LOGDEPTH $LOGFILE >/dev/null
fi

--- NEW FILE: dialin.config ---
# dialin.config (CNDFILE in policy.h)
#
# cndfile contains a series of tokens separated by newlines, commas, tabs
# and spaces.  The callerid number is compared with each token in turn,
# until a match occurs.  A match occurs when the token compares equally to
# the callerid information up to the length of the token.  If the token is
# prefixed with a "!", a match means "do not answer the phone".  The token
# "all" matches any telephone number, and will terminate scanning of the
# cndfile.  If no callerid number is present, it is assumed to have the
# value "none".  A line starting with "#" is a comment.  There is an
# implicit "all" at the end of the file.
# 
# For example:

# list of my friends' data lines
#3433535, 7445343, 5551212
#
# dad's fax
#4164646777
#
# disallow [other] calls from numbers matching the following prefix:
#!416
#
# disallow that speed dialer that keeps hitting my machine
#!3444444
#
# allow all calls with the following prefixes
#832, 555
#
# don't allow calls when there's no callerid:
#!none
#
# It's okay to accept calls from out of area
# ("OUT_OF_AREA" token seems ZyXEL specific)
#OUT_OF_AREA
# For V.253 compatibles modems "OUT OF AREA" is represented by the
# single letter 'O'
#O
#
# The caller has denied the transmission of his number
# (private service) (For German Telecom dialprefix *31#).
# This is for V.253 compatible modems represented by the single
# letter 'P'.
# don't allow access to my machine for those callers
#!P
# 
#
# disallow all other calls
#!all

--- NEW FILE: login.config ---
# login.config
#
# This is a sample "login dispatcher" configuration file for mgetty
#
# Format:
#       username userid utmp_entry login_program [arguments]
#
# Meaning:
#       for a "username" entered at mgettys login: prompt, call
#       "login_program" with [arguments], with the uid set to "userid",
#       and a USER_PROCESS utmp entry with ut_user = "utmp_entry"
#
# username may be prefixed / suffixed by "*" (wildcard)
#
# userid is a valid user name from /etc/passwd, or "-" to not set
#  a login user id and keep the uid/euid root (needed for /bin/login)
#
# utmp_entry is what will appear in the "who" listing. Use "-" to not
#  set an utmp entry (a must for /bin/login), use "@" to set it to the
#  username entered. Maximum length is 8 characters.
#
# login_program is the program that will be exec()ed, with the arguments
#  passed in [arguments]. A "@" in the arguments will be replaced with the
#  username entered. Warning: if no "@" is given, the login_program has
#  no way to know what user name the user entered.
#
#
# SAMPLES:
# Use this one with my Taylor-UUCP and Taylor-UUCP passwd files. 
#  (Big advantage: tuucp can use the same passwd file for serial dial-in 
#   and tcp dial-in [uucico running as in.uucpd]). Works from 1.05 up.
#
#U*     uucp    @       /usr/sbin/uucico -l -u @

#
# Use this one for fido calls (login name /FIDO/ is handled specially)
#
# You need Eugene Crosser's "ifmail" package for this to work.
#  mgetty has to be compiled with "-DFIDO", otherwise a fido call won't
#  be detected.
#
#/FIDO/ uucp    fido    /usr/lib/fnet/ifcico @

#
# Automatic PPP startup on receipt of LCP configure request (AutoPPP).
#  mgetty has to be compiled with "-DAUTO_PPP" for this to work.
#  Warning: Case is significant, AUTOPPP or autoppp won't work!
#  Consult the "pppd" man page to find pppd options that work for you.
#
#  NOTE: for *some* users, the "-detach" option has been necessary, for 
#        others, not at all. If your pppd doesn't die after hangup, try it.
#
#  NOTE2: "debug" creates lots of debugging info.  LOOK AT IT if things
#         do not work out of the box, most likely it's a ppp problem!
#
#  NOTE3: "man pppd" is your friend!
#
#  NOTE4: max. 9 arguments allowed.
#
/AutoPPP/ -     a_ppp   /usr/sbin/pppd auth -chap +pap login debug

#
#
# An example where no login name in the argument list is desired:
#  automatically telnetting to machine "smarty" for a given login name
#
#telnet-smarty  gast    telnet  /usr/bin/telnet -8 smarty
#
# This is the "standard" behaviour - *dont* set a userid or utmp
#  entry here, otherwise /bin/login will fail!
#  This entry isn't really necessary: if it's missing, the built-in
#  default will do exactly this.
#
*       -       -       /bin/login @

--- NEW FILE: issue.mgetty ---
LEAF Bering_uClibc/\s \P \S (\I)

--- NEW FILE: buildtool.mk ---
# makefile for mgetty
include $(MASTERMAKEFILE)

MGETTY_DIR:=mgetty-1.1.30
MGETTY_TARGET_DIR:=$(BT_BUILD_DIR)/mgetty

patchdir = $(MGETTY_DIR)/debian/patches
patches = $(shell ls $(patchdir) | sort)
rev_patches = $(shell ls $(patchdir) | sort -r)


$(MGETTY_DIR)/.source:
        zcat $(MGETTY_SOURCE) | tar -xvf -
        zcat $(MGETTY_PATCH) | patch -d $(MGETTY_DIR) -p1
        touch $(MGETTY_DIR)/.source

source: $(MGETTY_DIR)/.source
                        
$(MGETTY_DIR)/.configured: $(MGETTY_DIR)/.source
#       (cd $(MGETTY_DIR) ; CC=$(TARGET_CC) LD=$(TARGET_LD) ./configure)
        touch $(MGETTY_DIR)/.configured
                                                                 
$(MGETTY_DIR)/.build: $(MGETTY_DIR)/.configured

        @for file in $(patches); do \
        if [ ! -f $(patchdir)/$$file.stamp ]; then \
                echo Applying $$file...; \
                patch -p1 < $(patchdir)/$$file; \
                touch $(patchdir)/$$file.stamp; \
        fi; \
        done
        
        -cp $(MGETTY_DIR)/debian/policy.h $(MGETTY_DIR)/debian/voice-defs.h 
$(MGETTY_DIR)
        mkdir -p $(MGETTY_TARGET_DIR)
        mkdir -p $(MGETTY_TARGET_DIR)/etc/
        mkdir -p $(MGETTY_TARGET_DIR)/etc/mgetty
        mkdir -p $(MGETTY_TARGET_DIR)/etc/cron.daily    
        mkdir -p $(MGETTY_TARGET_DIR)/sbin
        mkdir -p $(MGETTY_TARGET_DIR)/usr/sbin
        mkdir -p $(MGETTY_TARGET_DIR)/usr/bin           
        make -C $(MGETTY_DIR) 
        -$(BT_STRIP) -s --remove-section=.note --remove-section=.comment 
$(MGETTY_DIR)/mgetty   
        -$(BT_STRIP) -s --remove-section=.note --remove-section=.comment 
$(MGETTY_DIR)/newslock
        -$(BT_STRIP) -s --remove-section=.note --remove-section=.comment 
$(MGETTY_DIR)/callback/callback        
        cp -a issue.mgetty $(MGETTY_TARGET_DIR)/etc
        cp -a mgetty.cron_daily $(MGETTY_TARGET_DIR)/etc/cron.daily/mgetty
        cp -a login.config $(MGETTY_TARGET_DIR)/etc/mgetty      
        cp -a dialin.config $(MGETTY_TARGET_DIR)/etc/mgetty     
        cp -a mgetty.config $(MGETTY_TARGET_DIR)/etc/mgetty                     
        cp -a $(MGETTY_DIR)/mgetty $(MGETTY_TARGET_DIR)/sbin
        cp -a $(MGETTY_DIR)/newslock $(MGETTY_TARGET_DIR)/usr/bin
        cp -a $(MGETTY_DIR)/callback/callback $(MGETTY_TARGET_DIR)/usr/sbin     
        cp -a $(MGETTY_TARGET_DIR)/* $(BT_STAGING_DIR)
        touch $(MGETTY_DIR)/.build

build: $(MGETTY_DIR)/.build
                                                                                
         
clean:
        make -C $(MGETTY_DIR) clean
        rm -rf $(MGETTY_TARGET_DIR)
        rm -rf $(MGETTY_DIR)/.build
        rm -rf $(MGETTY_DIR)/.configured
                                                                                
                                 
srcclean: clean
        rm -rf $(MGETTY_DIR) 
        rm -rf $(MGETTY_DIR)/.source

--- NEW FILE: mgetty.config ---
#
# mgetty configuration file
#
# this is a sample configuration file, see mgetty.info for details
#
# comment lines start with a "#", empty lines are ignored


# ----- global section -----
#
# In this section, you put the global defaults, per-port stuff is below


# set the global debug level to "4" (default from policy.h)
debug 4

# set the local fax station id
fax-id  

# access the modem(s) with 38400 bps
speed 38400

#  use these options to make the /dev/tty-device owned by "uucp.uucp" 
#  and mode "rw-rw-r--" (0664). *LEADING ZERO NEEDED!*
#port-owner uucp
#port-group uucp
#port-mode 0664

#  use these options to make incoming faxes owned by "root.uucp" 
#  and mode "rw-r-----" (0640). *LEADING ZERO NEEDED!*
#fax-owner root
#fax-group uucp
#fax-mode 0640


# ----- port specific section -----
# 
# Here you can put things that are valid only for one line, not the others
#

# Zoom V.FX 28.8, connected to ttyS0: don't do fax, less logging
#
#port ttyS0
#  debug 3
#  data-only y

# some other Rockwell modem, needs "switchbd 19200" to receive faxes
# properly (otherwise it will fail with "timeout").
#
#port ttyS1
#  speed 38400
#  switchbd 19200

# ZyXEL 2864, connected to ttyS2: maximum debugging, grab statistics
#
#port ttyS2
#  debug 8
#  init-chat "" \d\d\d+++\d\d\dAT&FS2=255 OK ATN3S0=0S13.2=1 OK 
#  statistics-chat "" AT OK ATI2 OK
#  statistics-file /var/log/statistics.ttyS2
#  modem-type cls2

# direct connection of a VT100 terminal which doesn't like DTR drops
#
#port ttyS3
#  direct y
#  speed 19200
#  toggle-dtr n

--- NEW FILE: buildtool.cfg ---
<Server cvs-sourceforge>
  Type = viewcvs
  Name = cvs.sourceforge.net/cgi-bin/viewcvs.cgi
  Serverpath = /leaf/src/bering-uclibc/apps
</Server>
      
<File buildtool.mk>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<File mgetty_1.1.30.orig.tar.gz>
  Server = cvs-sourceforge
  Revision = HEAD
  envname = MGETTY_SOURCE
  Directory = mgetty
</File>

<File mgetty_1.1.30-5.1.diff.gz>
  Server = cvs-sourceforge
  Revision = HEAD
  envname = MGETTY_PATCH
  Directory = mgetty
</File>

<File dialin.config>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<File login.config>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<File mgetty.config>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<File issue.mgetty>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<File mgetty.cron_daily>
  Server = cvs-sourceforge
  Revision = HEAD
  Directory = mgetty
</File>

<Package>
        <mgetty>
                Version = 1.1.30-5.1
                Revision = 1

                Help <<EOF
                Mgetty is a reliable and proven fax receive solution for linux.
                Homepage: http://alpha.greenie.net/mgetty/
                LEAF package by __PACKAGER__, __BUILDDATE__             
                EOF
                
                <Permissions>
                        Files = 644
                        Directories = 755
                </Permissions>

                <Owner>
                        Files = root:root
                        Directories = root:root
                </Owner>
                
                <Contents>

                        <File>          
                                Filename        = etc/mgetty/dialin.config
                                Source          = etc/mgetty/dialin.config
                                Description     = dial-in configuration
                                Type            = conf
                                Type            = binary
                                Permissions = 600
                        </File>                 

                        <File>          
                                Filename        = etc/mgetty/login.config
                                Source          = etc/mgetty/login.config
                                Description     = login configuration
                                Type            = conf
                                Type            = binary
                                Permissions = 600
                        </File>                 


                        <File>          
                                Filename        = etc/mgetty/mgetty.config
                                Source          = etc/mgetty/mgetty.config
                                Description     = general mgetty configuration
                                Type            = conf
                                Type            = binary
                                Permissions = 600
                        </File>                 


                        <File>
                                Filename    = etc/cron.daily/mgetty
                                Source      = etc/cron.daily/mgetty
                                Type        = binary
                                Permissions = 755
                        </File>

                        <File>
                                Filename    = etc/issue.mgetty
                                Source      = etc/issue.mgetty
                                Type        = binary
                                Permissions = 600
                        </File>

                        <File>          
                                Source          = sbin/mgetty
                                Filename        = sbin/mgetty
                                Type            = binary
                                Permissions = 755
                        </File>         
                        <File>          
                                Source          = usr/sbin/callback
                                Filename        = usr/sbin/callback
                                Type            = binary
                                Permissions = 755
                        </File>         

                        <File>          
                                Source          = usr/bin/newslock
                                Filename        = usr/bin/newslock
                                Type            = binary
                                Permissions = 755
                        </File>         

                </Contents>                     
        </mgetty>
</Package>



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
leaf-cvs-commits mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-cvs-commits

Reply via email to