Add mock port

This commit is contained in:
Marco Peereboom 2009-10-07 15:36:56 +00:00
parent 30ba332d9d
commit 4c7bb090c5
7 changed files with 104 additions and 0 deletions

42
port/Makefile Normal file
View file

@ -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>

5
port/distinfo Normal file
View file

@ -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

View file

@ -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;

View file

@ -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

5
port/pkg/DESCR Normal file
View file

@ -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.

2
port/pkg/PFRAG.shared Normal file
View file

@ -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}

13
port/pkg/PLIST Normal file
View file

@ -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