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

Commit

Permalink
xsel: new package at 1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanaraps committed Nov 30, 2019
1 parent a011a72 commit fc67806
Show file tree
Hide file tree
Showing 6 changed files with 34 additions and 0 deletions.
11 changes: 11 additions & 0 deletions community/xsel/build
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/sh -e

patch -p1 < strncpy.patch

autoreconf -i

./configure \
--prefix=/usr

make
make DESTDIR="$1" install
2 changes: 2 additions & 0 deletions community/xsel/checksums
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
c0d70a7e9601e24015f97b5573ffb134e95e7f373da700c93fe5055f6a05da90 1.2.0.tar.gz
2c5bfbdc119795dcd8531f29a3d9b396b6db8962b336833252088ef1b3c5d5e2 strncpy.patch
5 changes: 5 additions & 0 deletions community/xsel/depends
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
autoconf make
automake make
libX11
libXmu
libXt
13 changes: 13 additions & 0 deletions community/xsel/patches/strncpy.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git xsel.c xsel.c
index 79cc68b..556585e 100644
--- xsel.c
+++ xsel.c
@@ -1983,7 +1983,7 @@ main(int argc, char *argv[])
dont_output = True;
} else if (OPT("--logfile") || OPT("-l")) {
i++; if (i >= argc) goto usage_err;
- strncpy (logfile, argv[i], MAXFNAME);
+ strncpy (logfile, argv[i], MAXFNAME-1);
} else {
goto usage_err;
}
2 changes: 2 additions & 0 deletions community/xsel/sources
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
https://github.com/kfish/xsel/archive/1.2.0.tar.gz
patches/strncpy.patch
1 change: 1 addition & 0 deletions community/xsel/version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1.2.0 1

0 comments on commit fc67806

Please sign in to comment.