JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
Add mock port
authorMarco Peereboom <marco@conformal.com>
Wed, 7 Oct 2009 15:36:56 +0000 (15:36 +0000)
committerMarco Peereboom <marco@conformal.com>
Wed, 7 Oct 2009 15:36:56 +0000 (15:36 +0000)
port/Makefile [new file with mode: 0644]
port/distinfo [new file with mode: 0644]
port/patches/patch-scrotwm_c [new file with mode: 0644]
port/patches/patch-scrotwm_conf [new file with mode: 0644]
port/pkg/DESCR [new file with mode: 0644]
port/pkg/PFRAG.shared [new file with mode: 0644]
port/pkg/PLIST [new file with mode: 0644]

diff --git a/port/Makefile b/port/Makefile
new file mode 100644 (file)
index 0000000..588d7af
--- /dev/null
@@ -0,0 +1,42 @@
+# $OpenBSD: Makefile,v 1.10 2009/09/30 00:54:06 sthen Exp $
+
+COMMENT=               small tiling window manager
+
+SHARED_LIBS=           swmhack 0.0
+
+DISTNAME=              scrotwm-SCROTWMVERSION
+EXTRACT_SUFX=          .tgz
+CATEGORIES=            x11
+
+HOMEPAGE=              http://www.scrotwm.org/
+MAINTAINER=            Pierre-Yves Ritschard <pyr@spootnik.org>
+
+# BSD
+PERMIT_PACKAGE_CDROM=   Yes
+PERMIT_PACKAGE_FTP=     Yes
+PERMIT_DISTFILES_CDROM= Yes
+PERMIT_DISTFILES_FTP=   Yes
+
+MASTER_SITES=  http://www.peereboom.us/scrotwm/snapshot/
+
+NO_REGRESS=     Yes
+WANTLIB=        c X11 Xrandr util
+
+RUN_DEPENDS=   :dmenu->=3.9:x11/dmenu
+               
+MAKE_FLAGS=    BINDIR="${TRUEPREFIX}/bin" \
+               MANDIR="${TRUEPREFIX}/man/cat" \
+               SHLIB_MAJOR=${LIBswmhack_VERSION:C/\..*//} \
+               SHLIB_MINOR=${LIBswmhack_VERSION:C/.*\.//}
+
+pre-configure:
+       @${SUBST_CMD} ${WRKSRC}/scrotwm.conf ${WRKSRC}/scrotwm.c
+
+post-install:
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/scrotwm
+       ${INSTALL_DATA_DIR} ${PREFIX}/share/examples/scrotwm
+       ${INSTALL_SCRIPT} ${WRKSRC}/baraction.sh ${PREFIX}/share/scrotwm
+       ${INSTALL_SCRIPT} ${WRKSRC}/screenshot.sh ${PREFIX}/share/scrotwm
+       ${INSTALL_DATA} ${WRKSRC}/scrotwm.conf ${PREFIX}/share/examples/scrotwm
+
+.include <bsd.port.mk>
diff --git a/port/distinfo b/port/distinfo
new file mode 100644 (file)
index 0000000..2492687
--- /dev/null
@@ -0,0 +1,5 @@
+MD5 (scrotwm-0.9.8.tgz) = YGhKg1vwJRZLFyeg2QXdpg==
+RMD160 (scrotwm-0.9.8.tgz) = N/de4GcK6TUb+JlIsyW8j1L9QP8=
+SHA1 (scrotwm-0.9.8.tgz) = dVH++mSLCHXnY128QwNvJYnttTg=
+SHA256 (scrotwm-0.9.8.tgz) = uLI4CktyhZMvKdsdQ+VZ/bpwS+6Eb4bgri+y2od5IEw=
+SIZE (scrotwm-0.9.8.tgz) = 38863
diff --git a/port/patches/patch-scrotwm_c b/port/patches/patch-scrotwm_c
new file mode 100644 (file)
index 0000000..a3f4102
--- /dev/null
@@ -0,0 +1,12 @@
+$OpenBSD: patch-scrotwm_c,v 1.7 2009/09/30 00:54:06 sthen Exp $
+--- scrotwm.c.orig     Wed Sep 23 06:04:09 2009
++++ scrotwm.c  Fri Sep 25 17:28:03 2009
+@@ -150,7 +150,7 @@ u_int32_t          swm_debug = 0
+ #define SWM_MAX_FONT_STEPS    (3)
+ #ifndef SWM_LIB
+-#define SWM_LIB                       "/usr/local/lib/libswmhack.so"
++#define SWM_LIB                       "${PREFIX}/lib/libswmhack.so"
+ #endif
+ char                  **start_argv;
diff --git a/port/patches/patch-scrotwm_conf b/port/patches/patch-scrotwm_conf
new file mode 100644 (file)
index 0000000..b759318
--- /dev/null
@@ -0,0 +1,25 @@
+--- scrotwm.conf.orig  Wed Oct  7 10:15:33 2009
++++ scrotwm.conf       Wed Oct  7 10:17:10 2009
+@@ -10,7 +10,7 @@ bar_border[1]                = rgb:00/80/80
+ bar_color[1]          = black
+ bar_font_color[1]     = rgb:a0/a0/a0
+ bar_font              = -*-terminus-medium-*-*-*-*-*-*-*-*-*-*-*
+-#bar_action           = baraction.sh
++#bar_action           = ${PREFIX}/share/scrotwm/baraction.sh
+ #bar_delay            = 1
+ stack_enabled         = 1
+ clock_enabled         = 1
+@@ -19,10 +19,10 @@ title_class_enabled        = 0
+ # spawn app
+ # program[term]               = xterm
+-# program[screenshot_all]     = screenshot.sh full
+-# program[screenshot_wind]    = screenshot.sh window
++# program[screenshot_all]     = ${PREFIX}/share/scrotwm/screenshot.sh full
++# program[screenshot_wind]    = ${PREFIX}/share/scrotwm/screenshot.sh window
+ # program[lock]               = xlock
+-# program[initscr]    = initscreen.sh
++# program[initscr]    = ${PREFIX}/share/scrotwm/initscreen.sh
+ # program[menu]               = dmenu_run -fn $bar_font -nb $bar_color -nf $bar_font_color -sb $bar_border -sf $bar_color
+ spawn_term            = xterm
diff --git a/port/pkg/DESCR b/port/pkg/DESCR
new file mode 100644 (file)
index 0000000..8552827
--- /dev/null
@@ -0,0 +1,5 @@
+Scrotwm is a small dynamic tiling window manager for X11. It tries to
+stay out of the way so that valuable screen real estate can be used for
+much more important stuff. It has sane defaults and does not require one
+to learn a language to do any configuration. It was written by hackers
+for hackers and it strives to be small, compact and fast.
diff --git a/port/pkg/PFRAG.shared b/port/pkg/PFRAG.shared
new file mode 100644 (file)
index 0000000..963093b
--- /dev/null
@@ -0,0 +1,2 @@
+@comment $OpenBSD: PFRAG.shared,v 1.2 2009/09/30 00:54:06 sthen Exp $
+@lib lib/libswmhack.so.${LIBswmhack_VERSION}
diff --git a/port/pkg/PLIST b/port/pkg/PLIST
new file mode 100644 (file)
index 0000000..455644f
--- /dev/null
@@ -0,0 +1,13 @@
+@comment $OpenBSD: PLIST,v 1.1.1.1 2009/01/28 13:20:23 pyr Exp $
+%%SHARED%%
+@bin bin/scrotwm
+@man man/cat1/scrotwm.0
+@man man/cat1/scrotwm_es.0
+@man man/cat1/scrotwm_it.0
+share/examples/scrotwm/
+share/examples/scrotwm/scrotwm.conf
+@sample ${SYSCONFDIR}/scrotwm.conf
+share/scrotwm/
+share/scrotwm/baraction.sh
+share/scrotwm/initscreen.sh
+share/scrotwm/screenshot.sh