Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Commit fc67806

Browse files
committed
xsel: new package at 1.2.0
1 parent a011a72 commit fc67806

File tree

6 files changed

+34
-0
lines changed

6 files changed

+34
-0
lines changed

community/xsel/build

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/sh -e
2+
3+
patch -p1 < strncpy.patch
4+
5+
autoreconf -i
6+
7+
./configure \
8+
--prefix=/usr
9+
10+
make
11+
make DESTDIR="$1" install

community/xsel/checksums

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
c0d70a7e9601e24015f97b5573ffb134e95e7f373da700c93fe5055f6a05da90 1.2.0.tar.gz
2+
2c5bfbdc119795dcd8531f29a3d9b396b6db8962b336833252088ef1b3c5d5e2 strncpy.patch

community/xsel/depends

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
autoconf make
2+
automake make
3+
libX11
4+
libXmu
5+
libXt

community/xsel/patches/strncpy.patch

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git xsel.c xsel.c
2+
index 79cc68b..556585e 100644
3+
--- xsel.c
4+
+++ xsel.c
5+
@@ -1983,7 +1983,7 @@ main(int argc, char *argv[])
6+
dont_output = True;
7+
} else if (OPT("--logfile") || OPT("-l")) {
8+
i++; if (i >= argc) goto usage_err;
9+
- strncpy (logfile, argv[i], MAXFNAME);
10+
+ strncpy (logfile, argv[i], MAXFNAME-1);
11+
} else {
12+
goto usage_err;
13+
}

community/xsel/sources

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
https://github.com/kfish/xsel/archive/1.2.0.tar.gz
2+
patches/strncpy.patch

community/xsel/version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1.2.0 1

0 commit comments

Comments
 (0)