Added spec-file and sample-config for RPM.

master
fritz 24 years ago
parent 9a6da1a060
commit d8f38f288c
  1. 116
      .config.rpm
  2. 78
      isdn4k-utils.spec

@ -0,0 +1,116 @@
#
# Automatically generated by make menuconfig: don't edit
#
#
# Code maturity level options
#
CONFIG_EXPERIMENTAL=y
#
# General configuration
#
CONFIG_BUILDX11=y
CONFIG_KERNELDIR='/usr/src/linux'
CONFIG_BINDIR='/usr/bin'
CONFIG_SBINDIR='/sbin'
CONFIG_MANDIR='/usr/man'
CONFIG_RUNDIR='/var/run'
CONFIG_LOCKDIR='/var/lock'
CONFIG_LOCKFILE='LCK..'
CONFIG_I4LCONFDIR='/etc/isdn'
CONFIG_CONFFILE='isdn.conf'
CONFIG_CALLERIDFILE='callerid.conf'
CONFIG_USERCONFFILE='~/.isdn'
CONFIG_COUNTRYCODE='49'
CONFIG_AREACODE=''
CONFIG_COUNTRY_PREFIX='+'
CONFIG_AREA_PREFIX='0'
CONFIG_DATADIR='/usr/lib/isdn'
CONFIG_LIB_AREACODE=y
#
# Runtime configuration tools
#
CONFIG_ISDNCTRL=y
CONFIG_ISDNCTRL_CONF=y
CONFIG_ISDNCTRL_TIMRU=y
CONFIG_IPROFD=y
#
# Card configuration tools
#
# CONFIG_TELESCTRL is not set
CONFIG_HISAXCTRL=y
CONFIG_ICNCTRL=y
# CONFIG_ICNCTRL_DEBUG is not set
CONFIG_PCBITCTL=y
CONFIG_AVMCAPICTRL=y
CONFIG_LOOPCTRL=y
CONFIG_LOOPCTRL_LOOPDIR='/usr/src/linux/drivers/isdn/isdnloop'
# CONFIG_LOOPCTRL_DEBUG is not set
#
# Tools for monitoring activity
#
CONFIG_IMON=y
CONFIG_IMONTTY=y
CONFIG_ISDNLOG=y
#
# Options for isdnlog package
#
CONFIG_ISDNLOG_SERV_PORT=20011
CONFIG_ISDNLOG_USERFILE='isdnlog.users'
CONFIG_ISDNLOG_CHARGEFILE='charge.dat'
CONFIG_ISDNLOG_LOGFILE='/var/log/isdn.log'
CONFIG_ISDNLOG_RELOADCMD='reload'
CONFIG_ISDNLOG_STOPCMD='stop'
CONFIG_ISDNLOG_REBOOTCMD='/sbin/reboot'
CONFIG_ISDNLOG_OLDI4LCONFDIR='/etc/isdnlog'
CONFIG_ISDNLOG_OLDI4LCONFFILE='isdnlog.conf'
# CONFIG_ISDNLOG_POSTGRES is not set
# CONFIG_ISDNLOG_MYSQLDB is not set
CONFIG_ISDN_LOG_DE=y
CONFIG_IPPPSTATS=y
CONFIG_XISDNLOAD=y
CONFIG_XMONISDN=y
#
# Options for xmonisdn
#
CONFIG_XMONISDN_UPCMD='/sbin/netup'
CONFIG_XMONISDN_DOWNCMD='/sbin/netdown'
#
# Applications
#
CONFIG_VBOX=y
#
# Options for vbox package
#
VBOX_SPOOLDIR='/var/spool/vbox'
VBOX_LOGDIR='/var/log/vbox'
VBOX_PIDDIR='/var/run'
VBOX_LOCKDIR='/var/lock'
VBOX_DOCDIR='/usr/doc/vbox'
VBOX_TCL='tcl8.0'
CONFIG_IPPPD=y
#
# Options for ipppd
#
CONFIG_IPPPD_MSCHAP=y
# CONFIG_IPPPD_RADIUS is not set
# CONFIG_RADIUS_WTMP_LOGGING is not set
RADIUS_CLIENT_CONFIG_FILE=''
CONFIG_CAPIFAX=y
CONFIG_RCAPID=y
#
# Documentation
#
CONFIG_GENMAN=y
CONFIG_FAQ=y
CONFIG_FAQDIR='/usr/doc/faq/isdn4linux'

@ -0,0 +1,78 @@
Summary: Bundled Utilities for configuring an using ISDN4Linux
Name: isdn4k-utils
Version: 3.0beta2
Release: 1
Copyright: GPL
Group: Base
Source0: ftp://ftp.franken.de/pub/isdn4linux/v2.0/isdn4k-utils-3.0beta2.tar.gz
URL: http://www.isdn4linux.de
#Distribution: Unknown
Vendor: The ISDN4Linux Team
Packager: Fritz Elfert <fritz@isdn4linux.de>
Requires: kernel >= 2.0.36
BuildRoot: /var/tmp/isdn4k-utils-root
%description
isdn4k-utils is a collection of various ISDN related utilities. This
package contains configuration tools for all ISDN adapters, supported
by Linux. Furthermore, several status-monitors are provided as well as
some ISDN-based applications. Namely ipppd, a PPP daemon for synchronous
PPP over ISDN; vbox, an answering-machine and (for use with AVM-B1 only)
capifax, a faxmachine.
%prep
# remove old directory
if [ "X" != "${RPM_BUILD_ROOT}X" ]; then
rm -rf $RPM_BUILD_ROOT
fi
rm -rf $RPM_BUILD_DIR/isdn4k-utils-%{PACKAGE_VERSION}
mkdir $RPM_BUILD_DIR/isdn4k-utils-%{PACKAGE_VERSION}
# unpack main sources
%setup -n isdn4k-utils-%{PACKAGE_VERSION}
%build
cp .config.rpm .config
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" subconfig
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/{sbin,bin,man,include}
mkdir -p $RPM_BUILD_ROOT/usr/lib/isdn
mkdir -p $RPM_BUILD_ROOT/etc/isdn
mkdir -p $RPM_BUILD_ROOT/dev
make DESTDIR=$RPM_BUILD_ROOT install
cd $RPM_BUILD_ROOT/etc/isdn
for i in *.new ; do
mv $i `basename $i .new`
done
%clean
if [ "X" != "${RPM_BUILD_ROOT}X" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
/dev
/sbin
/usr/bin
/usr/lib/isdn
/usr/lib/libcapi20.a
/usr/include
/usr/X11R6/include/X11/bitmaps
%config /usr/X11R6/lib/X11/app-defaults/*
%dir /etc/isdn
%config /etc/isdn/vboxgetty.conf
%config /etc/isdn/vboxd.conf
%config /etc/isdn/isdn.conf
%doc /usr/man/man1/*
%doc /usr/man/man4/*
%doc /usr/man/man5/*
%doc /usr/man/man7/*
%doc /usr/man/man8/*
%doc /usr/doc/vbox/*
%doc /usr/X11R6/man/man1/*
%doc /usr/doc/faq/isdn4linux/*
%dir /var/spool/vbox
%dir /var/log/vbox
Loading…
Cancel
Save