initial commit of file from CVS for buffer on Wed 12 Jul 13:59:49 BST 2023
This commit is contained in:
parent
fbf5492080
commit
4013dc5a00
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
*.19.shar filter=lfs diff=lfs merge=lfs -text
|
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
*.rpm
|
||||||
|
*.log
|
||||||
|
*spec-20*
|
21
Makefile
Normal file
21
Makefile
Normal file
@ -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)
|
@ -1,3 +1,11 @@
|
|||||||
# buffer
|
# buffer
|
||||||
|
|
||||||
3rd Party (Maintained by Koozali) git repo for buffer smeserver
|
3rd Party (Maintained by Koozali) git repo for buffer smeserver
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
<br />*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*
|
||||||
|
<br />
|
||||||
|
|
||||||
|
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.
|
||||||
|
37
buffer-1.19.patch
Normal file
37
buffer-1.19.patch
Normal file
@ -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 <stdio.h>
|
||||||
|
#include <sys/types.h>
|
||||||
|
+#include <unistd.h>
|
||||||
|
#include <sys/stat.h>
|
||||||
|
#include <sys/ipc.h>
|
||||||
|
#include <sys/sem.h>
|
||||||
|
#include <errno.h>
|
||||||
|
#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" );
|
||||||
|
}
|
BIN
buffer-1.19.shar
(Stored with Git LFS)
Normal file
BIN
buffer-1.19.shar
(Stored with Git LFS)
Normal file
Binary file not shown.
14
buffer-largefile.patch
Normal file
14
buffer-largefile.patch
Normal file
@ -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 <unistd.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <signal.h>
|
86
buffer.spec
Normal file
86
buffer.spec
Normal file
@ -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 <daniel@firewall-services.com> 1.19-9.sme
|
||||||
|
- Rebase patches so it builds on el7 [SME: 9233]
|
||||||
|
|
||||||
|
* Sun Feb 7 2016 stephane de Labrusse <stephdl@de-labrusse.fr> 1.19-7.sme
|
||||||
|
- Build for sme10
|
||||||
|
|
||||||
|
* Sun Apr 29 2007 Shad L. Lords <slords@mail.com>
|
||||||
|
- Clean up spec so package can be built by koji/plague
|
||||||
|
|
||||||
|
* Thu Dec 07 2006 Shad L. Lords <slords@mail.com>
|
||||||
|
- Update to new release naming. No functional changes.
|
||||||
|
- Make Packager generic
|
||||||
|
|
||||||
|
* Mon Mar 13 2006 Shad L. Lords <slords@mail.com> 1.19-6sme
|
||||||
|
- Remove shmat definition so x86_64 builds correctly
|
||||||
|
|
||||||
|
* Thu Jun 19 2003 Charlie Brady <charlieb@e-smith.com> 1.19-5es
|
||||||
|
- Rebuild in-house to ensure library version compatibility.
|
||||||
|
|
||||||
|
* Sun Jan 5 2003 Edwin Huffstutler <edwinh@computer.org>
|
||||||
|
- added O_LARGEFILE
|
||||||
|
|
||||||
|
* Mon Jul 24 2000 Prospector <prospector@redhat.com>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Tue Jul 11 2000 Than Ngo <than@redhat.de>
|
||||||
|
- rebuilt
|
||||||
|
|
||||||
|
* Wed Jun 07 2000 Than Ngo <than@redhat.de>
|
||||||
|
- use rpm macros
|
||||||
|
|
||||||
|
* Mon Jun 05 2000 Michael Stefaniuc <mstefani@redhat.com>
|
||||||
|
- rewrote the spec file
|
||||||
|
- rewrote and extended the buffer patch
|
1
contriborbase
Normal file
1
contriborbase
Normal file
@ -0,0 +1 @@
|
|||||||
|
sme10
|
13
no_shmat.patch
Normal file
13
no_shmat.patch
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user