automatic rebuild by autodist [release 8.0.211-3mamba;Wed Aug 28 2013]

This commit is contained in:
Automatic Build System 2024-01-05 21:23:24 +01:00
parent 36bb51bde5
commit 315c9015d3
4 changed files with 194 additions and 0 deletions

View File

@ -1,2 +1,4 @@
# ckermit # ckermit
C-Kermit is a combined network and serial communication software package

13
ckermit-8.0-ckutio.patch Normal file
View File

@ -0,0 +1,13 @@
diff -Nru ckermit-8.0.orig/ckutio.c ckermit-8.0/ckutio.c
--- ckermit-8.0.orig/ckutio.c 2005-08-03 16:40:29.000000000 +0200
+++ ckermit-8.0/ckutio.c 2005-08-03 16:42:15.000000000 +0200
@@ -792,7 +792,9 @@
#ifndef FT21
#ifndef FT18
#ifndef COHERENT
+#ifndef LINUX
#include <fcntl.h>
+#endif /* LINUX */
#endif /* COHERENT */
#endif /* FT18 */
#endif /* FT21 */

109
ckermit-8.0-makefile.patch Normal file
View File

@ -0,0 +1,109 @@
--- ckermit-8.0/makefile 2004-04-17 20:52:00.000000000 +0200
+++ ckermit-8.0.orig/makefile 2005-08-04 16:31:29.000000000 +0200
@@ -902,10 +902,11 @@
BINARY = wermit
DESTDIR =
BINDIR = $(prefix)/bin
-MANDIR = $(manroot)/man/man1
+DATADIR = $(prefix)/share
+MANDIR = $(DATADIR)/man/man1
MANEXT = 1
SRCDIR =
-INFODIR =
+INFODIR = $(DATADIR)/info
CERTDIR =
TEXTFILES = COPYING.TXT ckcbwr.txt ckubwr.txt ckuins.txt ckccfg.txt \
@@ -966,7 +967,7 @@
else\
echo "Creating $(DESTDIR)...";\
DESTDIR=`echo $(DESTDIR) | sed 's!/*$$!!'`;\
- mkdir $$DESTDIR || exit 1;\
+ mkdir -p $$DESTDIR || exit 1;\
fi;\
chmod 755 $(DESTDIR) || exit 1;\
fi;\
@@ -985,7 +986,7 @@
echo "$(DESTDIR)$(BINDIR) exists...";\
else\
echo "Creating $(DESTDIR)$(BINDIR)/...";\
- mkdir $(DESTDIR)$(BINDIR) || exit 1;\
+ mkdir -p $(DESTDIR)$(BINDIR) || exit 1;\
chmod 755 $(DESTDIR)$(BINDIR);\
fi;\
rm -f $(DESTDIR)$(BINDIR)/kermit;\
@@ -998,7 +999,7 @@
echo "RmF $(DESTDIR)$(BINDIR)/kermit-sshsub" >&3;\
echo "RmF $(DESTDIR)$(BINDIR)/kermit" >&3;\
if test -f ckermit.ini; then\
- echo "#!$(DESTDIR)$(BINDIR)/kermit" >\
+ echo "#!$(BINDIR)/kermit" >\
$(DESTDIR)$(BINDIR)/_tmp.ini;\
cat ckermit.ini >> $(DESTDIR)$(BINDIR)/_tmp.ini;\
mv $(DESTDIR)$(BINDIR)/_tmp.ini\
@@ -1020,19 +1021,19 @@
echo;\
echo MANDIR=$(MANDIR);\
if test -n "$(MANDIR)"; then\
- if test -d $(MANDIR); then\
- echo "$(MANDIR) exists...";\
+ if test -d $(DESTDIR)$(MANDIR); then\
+ echo "$(DESTDIR)$(MANDIR) exists...";\
else\
- echo "Creating $(MANDIR)...";\
- mkdir $(MANDIR) || exit 1;\
- chmod 755 $(MANDIR) || exit 1;\
+ echo "Creating $(DESTDIR)$(MANDIR)...";\
+ mkdir -p $(DESTDIR)$(MANDIR) || exit 1;\
+ chmod 755 $(DESTDIR)$(MANDIR) || exit 1;\
fi;\
echo "Installing man page...";\
- rm -f $(MANDIR)/kermit.$(MANEXT);\
- cp ckuker.nr $(MANDIR)/kermit.$(MANEXT) || exit 1;\
- chmod 644 $(MANDIR)/kermit.$(MANEXT) || exit 1;\
+ rm -f $(DESTDIR)$(MANDIR)/kermit.$(MANEXT);\
+ cp ckuker.nr $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
+ chmod 644 $(DESTDIR)$(MANDIR)/kermit.$(MANEXT) || exit 1;\
echo 'set flag=f\nPrC Removing man pages' >&3;\
- echo "RmF $(MANDIR)/kermit.$(MANEXT)" >&3;\
+ echo "RmF $(DESTDIR)$(MANDIR)/kermit.$(MANEXT)" >&3;\
echo 'EfM' >&3;\
echo;\
else\
@@ -1041,18 +1042,18 @@
echo CERTDIR=$(CERTDIR);\
if test -n "$(CERTDIR)"; then\
if test -f ca_certs.pem; then\
- if test -d $(CERTDIR); then\
- echo "$(CERTDIR) exists...";\
+ if test -d $(DESTDIR)$(CERTDIR); then\
+ echo "$(DESTDIR)$(CERTDIR) exists...";\
else\
- echo "Creating $(CERTDIR)...";\
- mkdir $(CERTDIR) || exit 1;\
- chmod 755 $(CERTDIR) || exit 1;\
+ echo "Creating $(DESTDIR)$(CERTDIR)...";\
+ mkdir -p $(DESTDIR)$(CERTDIR) || exit 1;\
+ chmod 755 $(DESTDIR)$(CERTDIR) || exit 1;\
fi;\
echo "Installing certificates file...";\
- cp ca_certs.pem $(CERTDIR) || exit 1;\
+ cp ca_certs.pem $(DESTDIR)$(CERTDIR) || exit 1;\
echo 'set flag=f' >&3;\
echo 'PrC Removing certificates file' >&3;\
- echo "RmF $(CERTDIR)/ca_certs.pem" >&3;\
+ echo "RmF $(DESTDIR)$(CERTDIR)/ca_certs.pem" >&3;\
echo 'EfM' >&3;\
echo;\
fi;\
@@ -1110,8 +1111,8 @@
echo "RmD $(DESTDIR)$(BINDIR)" >&3;\
echo "RmD $(DESTDIR)$(SRCDIR)" >&3;\
echo "RmD $(DESTDIR)$(INFODIR)" >&3;\
- echo "RmD $(CERTDIR)" >&3;\
- echo "RmD $(MANDIR)" >&3;\
+ echo "RmD $(DESTDIR)$(CERTDIR)" >&3;\
+ echo "RmD $(DESTDIR)$(MANDIR)" >&3;\
echo "RmD $(DESTDIR)" >&3;\
echo "EfM" >&3;\
echo "PrN C-Kermit version $(CKVER) is uninstalled!" >&3;\

70
ckermit.spec Normal file
View File

@ -0,0 +1,70 @@
%define kermit_minver 211
Name: ckermit
Version: 8.0.211
Release: 3mamba
Summary: C-Kermit is a combined network and serial communication software package
Group: Applications/Communication
Vendor: openmamba
Distribution: openmamba
Packager: Tiziana Ferro <tiziana.ferro@email.it>
URL: http://www.columbia.edu/kermit/ck80.html
Source: ftp://kermit.columbia.edu/kermit/archives/cku%{kermit_minver}.tar.gz
Patch0: %{name}-8.0-ckutio.patch
Patch1: %{name}-8.0-makefile.patch
License: GPL
BuildRoot: %{_tmppath}/%{name}-%{version}-root
BuildRequires: libncurses-devel
BuildRequires: libopenssl-devel
Requires: lrzsz
%description
C-Kermit is a combined network and serial communication software package
%prep
%setup -q -c %{name}-%{version}
%patch0 -p1
%patch1 -p1
%build
%make linux
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall prefix=%{_prefix}
# fix an rpm bug about symlinks
rm -f %{buildroot}%{_bindir}/kermit-sshsub
ln -s %{_bindir}/kermit %{buildroot}%{_bindir}/kermit-sshsub
# remove configuration and text files from bin and info directories
rm -f %{buildroot}%{_bindir}/*.ini
rm -fr %{buildroot}%{_infodir}
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%{_bindir}/*
%{_bindir}/kermit-sshsub
%{_mandir}/man1/*
%doc COPYING.TXT *.txt *.ini
%changelog
* Wed Aug 28 2013 Automatic Build System <autodist@mambasoft.it> 8.0.211-3mamba
- automatic rebuild by autodist
* Sun Oct 26 2008 Tiziana Ferro <tiziana.ferro@email.it> 8.0.211-2mamba
- rebuild
* Fri Jan 19 2007 Silvan Calarco <silvan.calarco@mambasoft.it> 8.0.211-1qilnx
- add lrzsz requirement
- fix version number
* Fri Dec 02 2005 Stefano Cotta Ramusino <stefano.cotta@qilinux.it> 8.0-2qilnx
- specfile updated and fixed
- added missing build requirements
- fixed group
* Wed Aug 03 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 8.0-1qilnx
- package created by autospec