4000th COMMIT: Add a package manager, xbps
Now you don't have to wait painstakingly long for ports to compile!
This commit is contained in:
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/bin/bash ../install.sh
|
||||
|
||||
NAME='xbps'
|
||||
VERSION='0.60.7'
|
||||
DOWNLOAD_URL="https://github.com/void-linux/xbps/archive/refs/tags/$VERSION.tar.gz#ec8c2e4d595863b5748c10d9ada1d51ac1da6f910a9d31682acd1a477310c64e"
|
||||
DEPENDENCIES=('libarchive' 'openssl')
|
||||
@@ -0,0 +1,46 @@
|
||||
diff -ruN xbps-0.60.7/lib/fetch/common.c xbps-0.60.7-banan_os/lib/fetch/common.c
|
||||
--- xbps-0.60.7/lib/fetch/common.c 2026-02-09 22:23:08.000000000 +0200
|
||||
+++ xbps-0.60.7-banan_os/lib/fetch/common.c 2026-04-18 14:03:30.521070264 +0300
|
||||
@@ -163,7 +163,9 @@
|
||||
fetchLastErrCode = FETCH_TIMEOUT;
|
||||
break;
|
||||
case ECONNREFUSED:
|
||||
+#ifdef EHOSTDOWN
|
||||
case EHOSTDOWN:
|
||||
+#endif
|
||||
fetchLastErrCode = FETCH_DOWN;
|
||||
break;
|
||||
default:
|
||||
diff -ruN xbps-0.60.7/lib/fetch/ftp.c xbps-0.60.7-banan_os/lib/fetch/ftp.c
|
||||
--- xbps-0.60.7/lib/fetch/ftp.c 2026-02-09 22:23:08.000000000 +0200
|
||||
+++ xbps-0.60.7-banan_os/lib/fetch/ftp.c 2026-04-18 14:04:26.685837239 +0300
|
||||
@@ -138,7 +138,7 @@
|
||||
sin4->sin_port = port;
|
||||
sin4->sin_family = AF_INET;
|
||||
*len = sizeof(struct sockaddr_in);
|
||||
-#ifndef __linux__
|
||||
+#if !defined(__linux__) && !defined(__banan_os__)
|
||||
sin4->sin_len = sizeof(struct sockaddr_in);
|
||||
#endif
|
||||
}
|
||||
@@ -508,7 +508,7 @@
|
||||
tm.tm_mon--;
|
||||
tm.tm_year = year - 1900;
|
||||
tm.tm_isdst = -1;
|
||||
- t = timegm(&tm);
|
||||
+ t = mktime(&tm);
|
||||
if (t == (time_t)-1)
|
||||
t = time(NULL);
|
||||
us->mtime = t;
|
||||
diff -ruN xbps-0.60.7/lib/fetch/http.c xbps-0.60.7-banan_os/lib/fetch/http.c
|
||||
--- xbps-0.60.7/lib/fetch/http.c 2026-02-09 22:23:08.000000000 +0200
|
||||
+++ xbps-0.60.7-banan_os/lib/fetch/http.c 2026-04-18 14:03:46.645405420 +0300
|
||||
@@ -525,7 +525,7 @@
|
||||
setlocale(LC_TIME, locale);
|
||||
if (r == NULL)
|
||||
return (-1);
|
||||
- *mtime = timegm(&tm);
|
||||
+ *mtime = mktime(&tm);
|
||||
return (0);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
diff -ruN xbps-0.60.7/data/repod-main.conf xbps-0.60.7-banan_os/data/repod-main.conf
|
||||
--- xbps-0.60.7/data/repod-main.conf 2026-02-09 22:23:08.000000000 +0200
|
||||
+++ xbps-0.60.7-banan_os/data/repod-main.conf 2026-04-18 14:07:59.005131620 +0300
|
||||
@@ -1 +1 @@
|
||||
-repository=https://repo-default.voidlinux.org/current
|
||||
+repository=https://packages.bananymous.com/banan-os
|
||||
Reference in New Issue
Block a user