diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..1955ec0 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.19.shar filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1534ba5 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +*.rpm +*.log +*spec-20* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9cb7168 --- /dev/null +++ b/Makefile @@ -0,0 +1,21 @@ +# Makefile for source rpm: buffer +# $Id: Makefile,v 1.1 2016/02/07 13:48:09 stephdl Exp $ +NAME := buffer +SPECFILE = $(firstword $(wildcard *.spec)) + +define find-makefile-common +for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done +endef + +MAKEFILE_COMMON := $(shell $(find-makefile-common)) + +ifeq ($(MAKEFILE_COMMON),) +# attept a checkout +define checkout-makefile-common +test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2 +endef + +MAKEFILE_COMMON := $(shell $(checkout-makefile-common)) +endif + +include $(MAKEFILE_COMMON) diff --git a/README.md b/README.md index ce27cfc..90ed7da 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,11 @@ # buffer -3rd Party (Maintained by Koozali) git repo for buffer smeserver \ No newline at end of file +3rd Party (Maintained by Koozali) git repo for buffer smeserver + +## Description + +
*This description has been generated by an LLM AI system and cannot be relied on to be fully correct.* +*Once it has been checked, then this comment will be deleted* +
+ +Buffer is a social media management platform that allows businesses and individuals to manage their various social media accounts in one place. Buffer enables users to create and schedule content for their social media accounts, track performance, collaborate with team members, and respond to comments and messages in real-time. It supports a wide range of popular social media networks such as Twitter, Facebook, Instagram, LinkedIn, and more. diff --git a/buffer-1.19.patch b/buffer-1.19.patch new file mode 100644 index 0000000..c8c32e8 --- /dev/null +++ b/buffer-1.19.patch @@ -0,0 +1,37 @@ +diff -Nur buffer-1.19/sem.c buffer-1.19_buffer-1.19/sem.c +--- buffer-1.19/sem.c 2016-02-07 20:07:23.016441596 +0100 ++++ buffer-1.19_buffer-1.19/sem.c 2016-02-07 20:09:39.850435663 +0100 +@@ -28,13 +28,14 @@ + + #include + #include ++#include + #include + #include + #include + #include + #include "sem.h" + +-#if defined(SYS5) || defined(ultrix) || defined(_AIX) ++#if defined(SYS5) || defined(ultrix) || defined(_AIX) || defined _SEM_SEMUN_UNDEFINED + union semun { + int val; + struct semid_ds *buf; +@@ -95,7 +96,7 @@ + return sem; + } + +-static ++static void + do_sem( sem_id, pbuf, err ) + int sem_id; + struct sembuf *pbuf; +@@ -152,7 +153,7 @@ + if( sem_id == -1 ) + return; + +- if( semctl( sem_id, 0, IPC_RMID, NULL ) == -1 ){ ++ if( semctl( sem_id, 0, IPC_RMID, (union semun) 0 ) == -1 ){ + report_proc(); + perror( "internal error, failed to remove semaphore" ); + } diff --git a/buffer-1.19.shar b/buffer-1.19.shar new file mode 100644 index 0000000..d477326 --- /dev/null +++ b/buffer-1.19.shar @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ae930a90fab15b5269d85270787054d0852c27ba8fa8f6695a7cd28b49e8982 +size 57496 diff --git a/buffer-largefile.patch b/buffer-largefile.patch new file mode 100644 index 0000000..fd67613 --- /dev/null +++ b/buffer-largefile.patch @@ -0,0 +1,14 @@ +diff -Nur buffer-1.19/buffer.c buffer-1.19-largefile/buffer.c +--- buffer-1.19/buffer.c 2016-02-07 20:10:22.272433790 +0100 ++++ buffer-1.19-largefile/buffer.c 2016-02-07 20:12:08.612429023 +0100 +@@ -113,6 +113,10 @@ + * Initial revision + * + */ ++ ++#define _FILE_OFFSET_BITS 64 ++#define _LARGEFILE_SOURCE 1 ++ + #include + #include + #include diff --git a/buffer.spec b/buffer.spec new file mode 100644 index 0000000..fc19f4e --- /dev/null +++ b/buffer.spec @@ -0,0 +1,86 @@ +# $Id: buffer.spec,v 1.4 2016/02/08 06:33:28 stephdl Exp $ + +Summary: general purpose buffer programm +Name: buffer +Version: 1.19 +Release: 9%{?dist} +License: GPL +Group: Applications/System +Source: http://sunsite.org.uk/public/public/packages/buffer/buffer-1.19.shar +Patch0: buffer-1.19.patch +Patch1: buffer-largefile.patch +Patch2: no_shmat.patch +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +This is a program designed to speed up writing tapes on remote tape +drives. After startup it splits itself into two processes. The first +process reads (and reblocks) from stdin into a shared memory buffer. +The second writes from the shared memory buffer to stdout. Doing it this way +means that the writing side effectly sits in a tight write loop and +doesn't have to wait for input. Similarly for the input side. It is +this waiting that slows down other reblocking processes, like dd. + +%prep +%setup -q -c %{name}-%{version} -T +sh $RPM_SOURCE_DIR/%{name}-%{version}.shar + +%patch0 -p1 +%patch1 -p1 +%patch2 -p1 + +%build +make CFLAGS="$RPM_OPT_FLAGS -Wall -s" + +%install +install -m 755 -D buffer $RPM_BUILD_ROOT%{_bindir}/buffer +install -m 644 -D buffer.man $RPM_BUILD_ROOT%{_mandir}/man1/buffer.1 + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(-,root,root) +%doc COPYING README +%{_bindir}/buffer +%{_mandir}/man1/buffer.1* + +%changelog +* Wed Jul 12 2023 BogusDateBot +- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday, + by assuming the date is correct and changing the weekday. + +* Sun Feb 7 2016 Daniel Berteaud 1.19-9.sme +- Rebase patches so it builds on el7 [SME: 9233] + +* Sun Feb 7 2016 stephane de Labrusse 1.19-7.sme +- Build for sme10 + +* Sun Apr 29 2007 Shad L. Lords +- Clean up spec so package can be built by koji/plague + +* Thu Dec 07 2006 Shad L. Lords +- Update to new release naming. No functional changes. +- Make Packager generic + +* Mon Mar 13 2006 Shad L. Lords 1.19-6sme +- Remove shmat definition so x86_64 builds correctly + +* Thu Jun 19 2003 Charlie Brady 1.19-5es +- Rebuild in-house to ensure library version compatibility. + +* Sun Jan 5 2003 Edwin Huffstutler +- added O_LARGEFILE + +* Mon Jul 24 2000 Prospector +- rebuilt + +* Tue Jul 11 2000 Than Ngo +- rebuilt + +* Wed Jun 07 2000 Than Ngo +- use rpm macros + +* Mon Jun 05 2000 Michael Stefaniuc +- rewrote the spec file +- rewrote and extended the buffer patch diff --git a/contriborbase b/contriborbase new file mode 100644 index 0000000..ef36a67 --- /dev/null +++ b/contriborbase @@ -0,0 +1 @@ +sme10 diff --git a/no_shmat.patch b/no_shmat.patch new file mode 100644 index 0000000..9a4a511 --- /dev/null +++ b/no_shmat.patch @@ -0,0 +1,13 @@ +diff -Nur buffer-1.19/buffer.c buffer-1.19-no_shma/buffer.c +--- buffer-1.19/buffer.c 2016-02-07 20:28:56.432381667 +0100 ++++ buffer-1.19-no_shma/buffer.c 2016-02-07 20:29:29.911380082 +0100 +@@ -135,9 +135,5 @@ + #endif + +-#ifndef __alpha +-extern char *shmat(); +-#endif /* __alpha */ +- + /* General macros */ + #define TRUE 1 + #define FALSE 0