Upgrading to 04x

3rd Party Package Requesting

Upgrading to 04x

Postby justdave » Mon Mar 14, 2011 6:05 pm

I am planning on upgrading my system to 04x. I am looking for the following packages:

bootp
efax
joe
nfsd
spamd
tftpd

Has anyone repackaged these for the 04x series?

thanks

dave
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Mon Mar 14, 2011 6:38 pm

bootp is included in the pxe-2.1-lightning.pkg package
efax has not been asked for before now.
joe has not been asked for before now.
nfsd ???
spamd has not been asked for before now
tftpd is included in the above pxe package

I can easily convert the existing 03x packages to the new 04x package system. But I am uncertain of the package you got with nfsd in it. So a list of the actual packages installed on your system would be helpful.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Mon Mar 14, 2011 7:01 pm

The nfsd was package ntsfd_2.20beta40_gnork.

It's good to know that the other packages are available.

thanks

dave
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Tue Mar 15, 2011 6:14 am

Do you have the actual ntsfd_2.20beta40_gnork package or can you tell me where to get it ?
or even just all of the components would probably be enough to create a 04x package out of it.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Tue Mar 15, 2011 12:26 pm

Sorry, that should be nfsd_2.20beta40_gnork. I can't find a copy of it on my computer, and I don't know where I got it from.

There seems to be some reference to another package in this post: viewtopic.php?f=21&t=16087&hilit=nfsd

thanks

dave
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Tue Mar 15, 2011 7:23 pm

If you can just tar the basic files together for me I can create a package from it. The /pkg/rc/rc_nfs script, the /pkg/db/nfsd_2.20beta40_gnork script and if you look at the uninstall section of the install script it will give you a detailed list of the files that were also included in the package and they can be copied as well into the tarball. There may also be some inetd configuration that goes with it as well depending on how it was done and probably some "host.allow" and "host.deny" files.At that point with the files and the information in the scripts I can recreate the package for the 04x series.

From memory this package was never published to FREESCOsoft and gnork just had it on his own web site which was closed down a number of years ago.. It was also as I recall mostly just the files from Zipslack. But it is hard to say without seeing the files.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Sat Apr 30, 2011 4:26 pm

Here are the scripts for the nfsd. I tried to attach them, but I see no option for that. I think that you might want to consider including them with the pxe package since they deal with similar functions.

thanks

dave

#!/bin/sh
#
# Template for NFS Server version 2.20beta40

#. /etc/system.cfg
. /etc/colors

fn2() { ps | sed -n '/ rpc.nfsd/P';
}
runchk() {
CHECK=$1
RUNNING=1
cd /proc
for j in [0-9] [0-9]? [0-9]?? [0-9]??? [0-9]????; do
[ -f "$j/status" ] || continue
set -- ""; set -- `cat $j/status`
[ "$2" = "$CHECK" ] && RUNNING=0 && break
done
}
stp() {
runchk nfsd
[ "$RUNNING" = 1 ] && return
echo -n "Stopping nfsd... "
killall -HUP rpc.nfsd
killall -HUP rpc.mountd
killall rpc.portmap
=
}
str() {
runchk nfsd
[ "$RUNNING" = 0 ] && return
echo -n "Starting nfsd... "
/pkg/sbin/rpc.portmap
/pkg/sbin/rpc.mountd
/pkg/sbin/rpc.nfsd
= $?
}
edthlp() { cat <<~

Now you can edit the configuration file(s) for$CY nfsd$CW

After you are finished editing the configuration scripts.
Exit and save with$CG <ALT>+<X>$CW or$CG <F10>$CW and then$CG <y>

<ENTER>$CW to continue.

~

}

case "$1" in
firewall) ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 2049 -y -o
ipfwadm -I -a reject -P udp -W $INET -D 0.0.0.0/0 2049 -y -o
ipfwadm -I -a reject -P tcp -W $INET -D 0.0.0.0/0 111 -y -o
ipfwadm -I -a reject -P udp -W $INET -D 0.0.0.0/0 111 -y -o
;;
boot) ;;
setup) edthlp
read t
edit /pkg/etc/exports
edit /pkg/etc/hosts.allow
edit /pkg/etc/hosts.deny
sync; sync
;;
start) str;;
stop) stp;;
restart)stp;str;;
newip) ;;
status) runchk nfsd
if [ "$RUNNING" = 0 ]
then echo "Running nfsd"; fn2
else echo No running nfsd
fi;;
esac




#!/bin/sh
# Packager version 2.6b made by Lightning 3/9/2005
#
# Packaged by gnork
. /etc/colors

NAME=nfsd_2.20beta40_gnork
FILES="nfsd_2.20beta40_gnork.tgz"
EXFILE=""
FREESCO="0.3.0 0.3.x"
PACKED=81
UNPACKED=170
LIBS=""
DEPEND=""
INFO="nfsd_2.20beta40_gnork
NFS Server 2.20beta40 for Network Filesharing Protocol
"

quit() { rm -r $3
killall pkg
sync
sync
exit 1
}

case $1 in
preinstall)
echo " ***-- This package is officially unapproved at this time --***"
echo " ***-- loading this program could damage your system --***"
exit 0;;
postinstall)
exit 0;;
info) echo "$INFO";;

uninstall)
rc_nfsd stop
[ -f /pkg/disabled/rc_nfsd ] && rm -f /pkg/disabled/rc_nfsd || rm -f /pkg/rc/rc_nfsd
rm -f /pkg/etc/exports
rm -f /etc/exports
rm -f /pkg/etc/hosts.allow
rm -f /etc/hosts.allow
rm -f /pkg/etc/hosts.deny
rm -f /etc/hosts.deny
rm -f /pkg/man/mountd.8.gz
rm -f /pkg/man/nfsd.8.gz
rm -f /pkg/man/portmap.8.gz
rm -f /pkg/man/exports.5.gz
rm -f /pkg/sbin/rpc.mountd
rm -f /pkg/sbin/rpc.nfsd
rm -f /pkg/sbin/rpc.portmap
;;
esac
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby justdave » Sat Apr 30, 2011 4:35 pm

Here is the information for efax

#!/bin/sh
# Packager version 2.3 made by Lightning 12/7/2003
#
# Packaged by justdave (justdavesj@yahoo.com)

. /etc/colors

NAME=efax-0.9-justdave
FILES="efax-0.9-justdave.tgz" # All multi file variable names are inclosed in one set of quotes
# and seperated by either a space or a TAB.
EXFILE="" # Move any FILES= names to the EXFILE= variable that you want to
# download with pkg -s and not to be installed with the pkg -i
# or pkg -r command.
FREESCO="0.3.0 0.3.x"
PACKED=106
UNPACKED=270
LIBS=""
DEPEND="" # This can just be part of a package name as well as the full name
# in FREESCO 031 and later versions. This does not cause the
# the package to fail the install. But it does give a WARNING if
# this dependency is not found.
INFO="This is efax from Freesco 0.2.7 repackaged for 0.3.x. It allows
Freesco to receive incoming faxes and print or email them."

quit() { rm -r $3
killall pkg
sync
sync
exit 1
}

case $1 in
preinstall)
# The next line must be included unless this packages has been
# tested and approved.

echo " ***-- This package is officially unapproved at this time --***"
echo " ***-- loading this program could damage your system --***"

# If your package needs to download something for the
# preinstall for a test or for extra libraries.
# Then you can use $2 and $3
# Example for libs:
# cd /
# for i in ; do
# if [ ! -f /pkg/lib/$i ]; then
# echo "Downloading $i.tgz"
# snarf $2$i.tgz $3/$i.tgz
# echo -n "Unpacking $i .. "
# if zcat <$3/$i.tgz >/dev/null 2>&1
# then zcat <$3/$i | star; rm -r $3/$i
# else echo "${CR}Broken archive, try download/install again.$CW"; quit
# fi
# =
# else
# echo "Found $i"
# fi
# done
# NOTE Warning: Using the above command exclusively may not
# always work. The reason is that there can be multiple version
# of the same library name. So checking the size as well may be
# required. However the solution to this problem is that you use
# the actual library name and include pathless symlinks to the
# actual used name. Something like
# cd /packaging/pkg/lib
# ln -s lib.1.2.3.4.so lib.1.so
# Then package the symlinks and library as one .tgz . Only include
# the actual library name.version in the LIBS variable and exclude all
# symlinks. You also will need to include the full file names in the
# EXFILE variable. So that all files are downloaded with the pkg -s
# command.
#
# Second warning. The above code is untested and may not work.
# if that is the case then you may need to fix it ;-))
#
# Example simple:
# snarf -n $2File-name $3/Filename
#
# Note: A trailing / is required after $3 but not after $2
# $2=PackageURL
# $3=TempDirectory for this package
# exit 0 is required
exit 0;;

postinstall)
# In FREESCO v0.3.3 $2 and $3 are also parsed to the
# postinstall section.
# The package is installed. But has not quite finished
# and anything that needs to be stated or done can be
# done here.
# NOTE: if what you need to do, requires that the package
# is completely installed, use "pkg -rescan" and all files
# will be linked.
# exit 0 is required
exit 0;;

info) echo "$INFO";;




uninstall)
rc_efax stop
[ -f /pkg/disabled/rc_efax ] && rm -f /pkg/disabled/rc_efax || rm -f /pkg/rc/rc_efax
rm -f /pkg/efax/date
rm -f /pkg/efax/efax
rm -f /pkg/efax/efax.336
rm -f /pkg/efax/efax.conf
rm -f /pkg/efax/efix
rm -f /pkg/efax/faxd
rm -f /pkg/efax/faxlpr
rm -f /pkg/efax/faxmail
rm -f /pkg/efax/faxprint
rm -f /pkg/efax/temp
rm -f /pkg/efax/.perm
rm -f /pkg/efax/spool/.perm
rm -f /pkg/efax/log/.perm
rm -f /pkg/efax/log/incoming.log
rm -f /pkg/efax/incoming/.perm
;;
esac





#!/bin/sh
#
# Template for efax version 0.9

. /etc/system.cfg # Uncomment this only if it is needed.
. /etc/colors # Most packages don't need to read the system
. /etc/chat.pwd # configuration.
. /pkg/efax/efax.conf


fn2() { ps | sed -n '/ efax/P';
}
# check if program is actually running.
# Usually a <TAB> is required because otherwise this command will
# find it's self and always think your program is running.
# This will usually work where efax is the name of the program.
# But not always. Other parameters may be needed as well.

stp() {
[ "`fn2`" ] || return # if not running return
echo -n "Stopping efax... "
killall faxd -15
killall efax -15
killall efix -15
killall faxprint -15
killall faxlpr -15
killall faxmail -15
= # This just prints done regardless. Which killall has no exit code.
}
str() {
[ "`fn2`" ] && return # if already running return
echo -n "Starting efax... "
cd /pkg/efax
fork /pkg/efax/faxd > /dev/null
= $? # test the exit code of the program
# Note: Not all programs will respond correctly to the $?
# if this happens just use =
}
edthlp() { cat <<~

Now you can edit the configuration file(s) for$CY efax$CW

After you are finished editing the configuration scripts.
Exit and save with$CG <ALT>+<X>$CW or$CG <F10>$CW and then$CG <y>

<ENTER>$CW to continue.

~

}

case "$1" in
firewall) # If you need any firewall settings, just changhe the
# PortNumber to the actual port and include the udp as well
# if needed.
# ipfwadm -I -a deny -P tcp -W $INET -D 0/0 PortNumber -o
# ipfwadm -I -a deny -P udp -W $INET -D 0/0 PortNumber -o
;;
boot) # do boot time hardware init. Not recommended for most programs
ln -s /mnt/bootdev/router /mnt/
ln -s /dev/cua4 /dev/modem
;;
setup) # This is called from setup or directly from a command line.
# It should automaticly edit all of the configuration files
# for you program.
#
# edthlp
# read t
# edit /pkg/efax/efax.conf
# sync; sync
;;
start) echo "Checking the fax queue..."
for f in `find $SPOOLDIR/ | grep 'prn$'`; do
echo -n "Spooling `basename $f`... "
fork $FAXPRINT $f
=
done

for f in `find $SPOOLDIR/ | grep 'eml$'`; do
echo -n "Spooling `basename $f`... "
fork $FAXMAIL $f
=
done
rc_ras stop
str;;
stop) stp;;
restart)stp;str;;
reset) echo -n "Resetting the fax queue... "
rm $SPOOLDIR/* 2> /dev/null
=
;;
newip) # called when system gets new IP/DNS address.
;;
status) if [ "`fn2`" ]
then echo "Running efax"; fn2
else echo No running efax
fi;;
esac


##############################################################################
# efax Fax Server for Freesco configuration script. #
# Version 1.00 February 14, 2001 #
# Adapted to Freesco by Ecmel ERCAN ecmel@ecmel.org http://www.ecmel.org #
# The lpr client is taken from Internet Software Consortium and compiled #
# on ZipSlack 3.9, date command is taken from ZipSlack 3.9 #
# Adapted to Freesco 0.3.2 by Dave Stuart justdavesj@yahoo.com. #
##############################################################################

####################
# GENERAL SETTINGS #
####################

# The command to execute when a fax is received.
# 0 : OFF
# 1 : ONN

FXPRINT=0 # Print the fax
FXPRINTLOG=0 # Print the log
FXMAIL=1 # E-mail the fax as attachments
FXMAILLOGONLY=0 # E-mail only the log (FXMAIL should be set to 1)


# The number of rings to wait before answering.

ANSRINGS=1


##################
# MODEM SETTINGS #
##################

# The device to which the fax modem is connected (e.g. ttya for
# /dev/ttya). Use a dial-out (cua) device if available. If
# there are links to this device then all programs must use same
# name or the UUCP locking mechanism will fail. For example, if
# /dev/modem is a link to /dev/cua1, then getty, uucp, kermit,
# pppd, dip, etc. must *all* use either /dev/modem or /dev/cua1.

DEV=cua4
#DEV=cua0


# Uncomment one of the following lines to force xon/xoff flow
# control only if you have one of the types of modems listed.

# FCINIT='-j&H2' # USR (Courier, Sportster)
# FCINIT='-j\Q4' # AT&T (Dataport, Paradyne)
# FCINIT='-j\Q1' # Motorola (Power Modem, 3400 Pro,...)
# FCINIT='-j*F1' # QuickComm (Spirit II)
# FCINIT='-or' # Multi-Tech (for bit reversal)


# Commands to set up modem. "-iZ -i&FE&D2S7=120 -i&C0"
# works with almost all modems.

INIT="-iZ -i&FE&D2W2S10=1S7=120 -i&C1 -i+FAA=1"


# Command(s) to reset modem when efax finishes. "-kZ" works in
# almost all cases.

#RESET="-kZ"
RESET="-kZ -k&FE&D2S7=120 -k&C1 -k+FAA=1" # for modems that stay in fax mode after reset


# Speaker mode(M) and loudness(L). Mn sets speaker mode where n
# means: 0:never, 1:until carrier, 2:always, 3:on receive only.

SPKR="-iM0L0"


# Options to use a particular command sets. Use
# -o1 to force Class 1, -o2 for Class 2 and -o0 for Class 2.0.

# CLASSINIT="-o1" # Class 1
CLASSINIT="-o2" # Class 2
# CLASSINIT="-o0" # Class 2.0


##################
# PRINT SETTINGS #
##################

# The type of printer. Use 'pcl' for HP-PCL or 'ps' for Postscript.

#PRTYPE=ps # Postscript (e.g. Apple LaserWriter)
PRTYPE=pcl # HP-PCL (e.g. HP LaserJet)


# The name of the print queue.

PRTQUE=raw0
#PRTQUE=lp


# The name of the LPD server.

LPDSERVER=localhost


# Dimensions of page sizes.

FXPAGE="8.465x11in" # letter
#FXPAGE="8.465x14in" # legal
#FXPAGE="210x297mm" # A4

# Adjust the placement on paper.
# Following will displace output 10 mm to left and 2 mm to down.

FXPAGETRIM="-10,2mm"


# PRINTER resoulution

PRNRES=300x300


###################
# E-MAIL SETTINGS #
###################


# eXtremail settings

LOCALEXTREMAIL=0 # 1 = eXtremail installed 0 = not installed
EXMDIR=/pkg/eXtremail/mbox # Mailbox directory
EXMDOMAIN=ercansoy.com # Domain
EXMUSERS="ecmel timur recep" # Users to send e-mail when a fax is received


# If you do not have eXtremail on your system and want to receive
# faxes as e-mail attachments then you should provide a SMPT host here
# (Your ISP's smtp server would be a good choice).

SMTPHOST=mail.justdave.us


# The users to be sent mail when a fax is received.

MAILTO='justdavesj@yahoo.com'
MAILFROM='dave@justdave.us'


#############################################################################
#Please do not change anything below unless you know well what you are doing#
#############################################################################

# The names of the programs, including full path

EFAX=efax
EFIX=/pkg/efax/efix
LPR=/pkg/efax/faxlpr
TSTAMP='/pkg/efax/date +%s'
FAXMAIL=/pkg/efax/faxmail
FAXPRINT=/pkg/efax/faxprint


# The directory to store incoming faxes and log files.

FAXDIR=/pkg/efax/incoming
LOGDIR=/pkg/efax/log
SPOOLDIR=/pkg/efax/spool


# The strftime(3) pattern that generates the file name for
# received files. For example, at 10:45:36 on February 25,
# "%m%d%H%M%S" would produce 0225104536, "%j-%H%M" would produce
# 056-1045, and %d%b%H%M 25Feb1045.

ANSFNAME="%m%d%H%M%S"


DCMD="/bin/agetty $DEV 115200"
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Sat Apr 30, 2011 9:19 pm

I am going to assume that you can provide a copy of the efax-0.9-justdave package and a link to download it from ??
Although I could possibly recompile it as well with some minor directory changes to suite the system a little bit better. I do have a hylafax package that is in the beta section. However that package was NEVER completed and is currently a non-functional package. It would require some tinkering of configuration files and such to make it possibly run.

I have the binaries for the NFS package as they are standard Slackware binaries.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Sat Apr 30, 2011 11:08 pm

Do the binaries have to be recompiled for the new kernel changes? I will have to see what I can find.

dave
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Sun May 01, 2011 4:11 pm

Do the binaries have to be recompiled for the new kernel changes?
No, the kernel changes only really relate to networking applications that keep track of bytes which was changed from a 32bit number to a 64bit number.

However the source is easy to find and compiles easily, so I have the new binaries.
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Tue Jul 26, 2011 5:08 pm

I can't find the nfsd package. Have you posted it?

thanks

dave
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Tue Jul 26, 2011 7:23 pm

I can't find the nfsd package. Have you posted it?
No and yes, I had it posted for a while in my test directory. But removed it a while back, so I just re-posted it. I have no way to test the package so it is really a test package.

http://lewys-spot.dyndns.org/test/
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Re: Upgrading to 04x

Postby justdave » Tue Jul 26, 2011 7:36 pm

I get this when I try to install it:

Code: Select all
Any key to continue
Checking versions...                            Pv0.4.x
Checking required space 'disk'                  Ok
Checking dependencies...                        Ok
Checking if package is installed...             Ok
.: Can't open /pkg/db/install/english/install

Install this package (y/n)? [y]
Unpacking nfsd-2.20-lightning.tgz ..            Done
Checking for library conflicts...               Done
.: Can't open /pkg/db/install/english/install
.: Can't open /pkg/db/install/english/install
Installation aborted...

Bad file name
 Any key to continue
justdave
Junior Advanced Member
 
Posts: 124
Joined: Sat Dec 22, 2001 2:00 am
Location: san jose Ca USA

Re: Upgrading to 04x

Postby Lightning » Tue Jul 26, 2011 8:00 pm

Hmmmm maybe that was why I pulled the package. Regardless I repackaged it and uploaded the file, so try and install it again. :roll:
If you are afraid that you might make a mistake. The chances are high that you will never learn anything.
User avatar
Lightning
FREESCO GOD !!
 
Posts: 12079
Joined: Wed Nov 14, 2001 6:50 am
Location: Oregon, USA

Next

Return to 3rd Party Package Requesting

Who is online

Users browsing this forum: No registered users and 1 guest

cron