From 0bbf70c90c22139b6ef548e7844703d2a5425cbb Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Fri, 5 Jan 2024 17:36:47 +0100 Subject: [PATCH] automatic rebuild by autodist [release 2.7.10-4mamba;Mon Jul 15 2013] --- README.md | 3 ++ rxvt-2.7.10-configure_wtmp.patch | 11 +++++ rxvt-2.7.10-security.patch | 41 +++++++++++++++++ rxvt.spec | 78 ++++++++++++++++++++++++++++++++ rxvt_desktopfile | 13 ++++++ 5 files changed, 146 insertions(+) create mode 100644 rxvt-2.7.10-configure_wtmp.patch create mode 100644 rxvt-2.7.10-security.patch create mode 100644 rxvt.spec create mode 100644 rxvt_desktopfile diff --git a/README.md b/README.md index 05e97c3..4dffa2b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # rxvt +rxvt is a colour vt102 terminal emulator intended as an xterm replacement for users who do not require features such as Tektronix 4014 emulation and toolkit-style configurability. +As a result, rxvt uses much less swap space. + diff --git a/rxvt-2.7.10-configure_wtmp.patch b/rxvt-2.7.10-configure_wtmp.patch new file mode 100644 index 0000000..159f0bb --- /dev/null +++ b/rxvt-2.7.10-configure_wtmp.patch @@ -0,0 +1,11 @@ +--- rxvt-2.7.10/configure 2003-03-26 07:07:26.000000000 +0100 ++++ rxvt-2.7.10/configure.fix 2007-10-10 17:36:09.000000000 +0200 +@@ -13966,7 +13966,7 @@ + main() + { + char **w, *wtmplist[] = { +- "/var/log/wtmpx", "/var/adm/wtmpx", NULL }; ++ "/var/log/wtmpx", "/var/adm/wtmpx", "/var/log/wtmp", NULL }; + FILE *a, *f=fopen("conftestval", "w"); + if (!f) exit(1); + #ifdef WTMPX_FILE diff --git a/rxvt-2.7.10-security.patch b/rxvt-2.7.10-security.patch new file mode 100644 index 0000000..cefe6ba --- /dev/null +++ b/rxvt-2.7.10-security.patch @@ -0,0 +1,41 @@ +--- src/command.c ++++ src/command.c +@@ -2878,7 +2878,7 @@ + unsigned char buf[256]; + + va_start(arg_ptr, fmt); +- vsprintf((char *)buf, fmt, arg_ptr); ++ vsnprintf((char *)buf, sizeof(buf), fmt, arg_ptr); + va_end(arg_ptr); + rxvt_tt_write(r, buf, (unsigned int)STRLEN(buf)); + } +--- src/main.c ++++ src/main.c +@@ -291,10 +291,14 @@ + break; + } + # else ++# error Warning, no seteuid/setegid avaliable + switch (mode) { + case IGNORE: +- setuid(getuid()); +- setgid(getgid()); ++ if (setgid(getgid()) < 0) ++ exit(1); ++ if (setuid(getuid()) < 0) ++ exit(1); ++ + /* FALLTHROUGH */ + case SAVE: + /* FALLTHROUGH */ +--- src/xdefaults.c ++++ src/xdefaults.c +@@ -810,7 +810,7 @@ + ptr = "."; + + for (i = 0; i < (sizeof(xnames) / sizeof(xnames[0])); i++) { +- sprintf(fname, "%-.*s/%s", sizeof(fname) - STRLEN(xnames[i]) - 2, ++ snprintf(fname, sizeof(fname), "%-.*s/%s", sizeof(fname) - STRLEN(xnames[i]) - 2, + ptr, xnames[i]); + if ((rdb1 = XrmGetFileDatabase(fname)) != NULL) { + XrmMergeDatabases(rdb1, &database); diff --git a/rxvt.spec b/rxvt.spec new file mode 100644 index 0000000..76ec7fe --- /dev/null +++ b/rxvt.spec @@ -0,0 +1,78 @@ +Name: rxvt +Release: 4mamba +Version: 2.7.10 +Summary: A colour vt102 terminal emulator for the X Window System +Group: Graphical Desktop/Applications/Utilities +Vendor: openmamba +Distribution: openmamba +Packager: Aleph0 +URL: http://sourceforge.net/projects/rxvt/ +Source0: http://downloads.sourceforge.net/sourceforge/rxvt/%{name}-%{version}.tar.gz +Source1: rxvt_desktopfile +Patch0: %{name}-2.7.10-security.patch +Patch1: %{name}-2.7.10-configure_wtmp.patch +BuildRequires: libX11-devel +BuildRequires: libXpm-devel +BuildRequires: libXt-devel +BuildRequires: xorg-proto-devel +License: GPL +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +rxvt is a colour vt102 terminal emulator intended as an xterm replacement for users who do not require features such as Tektronix 4014 emulation and toolkit-style configurability. +As a result, rxvt uses much less swap space. + +%prep +%setup -q +%patch0 -p0 -b .security +%patch1 -p1 -b .wtmp + +%build +%configure \ + --x-includes=%{_includedir} \ + --x-libraries=%{_libdir} \ + --enable-everything \ + --enable-languages \ + --enable-xim \ + --enable-xgetdefault \ + --enable-ttygid \ + --enable-256-color \ + --with-term=rxvt \ + --enable-ttygid \ + --enable-xpm-background + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall + +install -p -D -m644 %{S:1} %{buildroot}%{_datadir}/applications/%{name}.desktop + +rm -f %{buildroot}%{_bindir}/rxvt-%{version} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files +%defattr(-,root,root) +%{_bindir}/rclock +%{_bindir}/rxvt +%{_datadir}/applications/%{name}.desktop +%{_mandir}/man1/* +#%doc ChangeLog README.configure +#%doc doc/BUGS doc/FAQ doc/README.* doc/TODO doc/*.html doc/rxvtRef.txt doc/xterm.seq +#%doc doc/menu/* + +%changelog +* Mon Jul 15 2013 Automatic Build System 2.7.10-4mamba +- automatic rebuild by autodist + +* Thu May 21 2009 Automatic Build System 2.7.10-3mamba +- automatic rebuild by autodist + +* Tue Oct 09 2007 Aleph0 2.7.10-2mamba +- rebuilt against xorg + +* Fri Sep 03 2004 Davide Madrisan 2.7.10-1qilnx +- package creation diff --git a/rxvt_desktopfile b/rxvt_desktopfile new file mode 100644 index 0000000..b91b2f3 --- /dev/null +++ b/rxvt_desktopfile @@ -0,0 +1,13 @@ +[Desktop Entry] +Encoding=UTF-8 +Name=rxvt +GenericName=VT102 emulator +GenericName[it]=Emulatore VT102 +Comment=a VT102 emulator for the X window system +Comment[it]=Emulatore VT102 per il sistema X window +Exec=rxvt +Icon=konsole.png +Terminal=false +Type=Application +Categories=Application;System; +StartupNotify=false