diff --git a/x11/mons/Makefile b/x11/mons/Makefile new file mode 100644 index 000000000000..a5b412289d73 --- /dev/null +++ b/x11/mons/Makefile @@ -0,0 +1,26 @@ +# $FreeBSD$ + +PORTNAME= mons +DISTVERSION= 0.6.2 +DISTVERSIONPREFIX= v +CATEGORIES= x11 + +RUN_DEPENDS= xrandr>0:x11/xrandr + +MAINTAINER= rob@sarcasticadmin.com +COMMENT= a shell script to quickly manage displays using xrandr + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +NO_BUILD= yes + +USE_GITHUB= yes +GH_ACCOUNT= Ventto Ventto:gitsub +GH_PROJECT= posix-shell-list:gitsub +GH_TAGNAME= 8bce22d:gitsub + +post-extract: + @${MV} ${WRKSRC_gitsub}/* ${WRKSRC}/posix-shell-list + +.include diff --git a/x11/mons/distinfo b/x11/mons/distinfo new file mode 100644 index 000000000000..88a8df6afe02 --- /dev/null +++ b/x11/mons/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1504824692 +SHA256 (Ventto-mons-v0.6.2_GH0.tar.gz) = d18476b63c78ada08ad1df45fd45b922f087c6403e665dc54283c42d889d50a7 +SIZE (Ventto-mons-v0.6.2_GH0.tar.gz) = 5465 +SHA256 (Ventto-posix-shell-list-8bce22d_GH0.tar.gz) = cfa2c32723a2392076b68b33328c2570a81e790cd3b5f13a695ce4ec06be80fc +SIZE (Ventto-posix-shell-list-8bce22d_GH0.tar.gz) = 2624 diff --git a/x11/mons/files/patch-Makefile b/x11/mons/files/patch-Makefile new file mode 100644 index 000000000000..1e60b0a2f7e9 --- /dev/null +++ b/x11/mons/files/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig 2017-09-08 18:44:49.416778000 +0000 ++++ Makefile 2017-09-08 18:45:00.040629000 +0000 +@@ -1,5 +1,5 @@ +-BINDIR = $(DESTDIR)/usr/bin +-LIBDIR = $(DESTDIR)/usr/lib/posix-shell-list ++BINDIR = $(DESTDIR)/usr/local/bin ++LIBDIR = $(DESTDIR)/usr/local/lib/posix-shell-list + LIB = posix-shell-list/list.sh + + install: diff --git a/x11/mons/files/patch-mons b/x11/mons/files/patch-mons new file mode 100644 index 000000000000..f22ebf635d2f --- /dev/null +++ b/x11/mons/files/patch-mons @@ -0,0 +1,18 @@ +--- mons.orig 2017-09-07 23:50:17.486241000 +0000 ++++ mons 2017-09-07 23:50:33.521713000 +0000 +@@ -20,12 +20,12 @@ + # COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER + # IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + # CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +-if [ ! -f "/usr/lib/posix-shell-list/list.sh" ]; then +- echo '/usr/lib/posix-shell-list/list.sh: library not found.' ++if [ ! -f "/usr/local/lib/posix-shell-list/list.sh" ]; then ++ echo '/usr/local/lib/posix-shell-list/list.sh: library not found.' + exit 1 + fi + +-. /usr/lib/posix-shell-list/list.sh ++. /usr/local/lib/posix-shell-list/list.sh + + usage() { + echo 'Usage: mons [OPTION]... diff --git a/x11/mons/pkg-descr b/x11/mons/pkg-descr new file mode 100644 index 000000000000..bfe401dd70f6 --- /dev/null +++ b/x11/mons/pkg-descr @@ -0,0 +1,3 @@ +Mons is a Shell script to quickly manage 2-monitors display using xrandr. + +WWW: https://github.com/Ventto/mons diff --git a/x11/mons/pkg-plist b/x11/mons/pkg-plist new file mode 100644 index 000000000000..facdf8a3ab58 --- /dev/null +++ b/x11/mons/pkg-plist @@ -0,0 +1,2 @@ +bin/mons +lib/posix-shell-list/list.sh