#?patch
#
# (There seems to be a bug in diff(1) that causes the mandatory (yet
#  admittedly empty) pkg/DESCR file to be omitted. Just touch(1) it
#  yourself...) 
# 
# These patches add mdf2iso to the OpenBSD ports(7) tree.
#
#          --zeurkous, Wed Oct 28 14:15:48 UTC 2020.
#
diff -Nru /var/empty/Makefile ports/sysutils/mdf2iso/Makefile
--- /var/empty/Makefile Thu Jan  1 00:00:00 1970
+++ ports/sysutils/mdf2iso/Makefile     Wed Oct 28 14:09:18 2020
@@ -0,0 +1,24 @@
+COMMENT=       Alcohol 120% to ISO9660 image converter
+
+MASTER_SITES=  https://gitlab.com/bsdforge/mdf2iso/-/archive/master/
+DISTNAME=      mdf2iso-master
+EXTRACT_SUFX=  .tar.gz
+VER=           20201028
+PKGNAME=       mdf2iso-${VER}
+
+CATEGORIES=    sysutils
+
+# GPLv2
+PERMIT_PACKAGE=        Yes
+
+WANTLIB=       c
+
+CONFIGURE_STYLE=gnu
+
+post-extract:
+       cp ${FILESDIR}/Makefile-doc ${WRKSRC}
+
+post-install:
+       cd ${WRKSRC} && ${MAKE} -f Makefile-doc install
+
+.include <bsd.port.mk>

diff -Nru /var/empty/distinfo ports/sysutils/mdf2iso/distinfo
--- /var/empty/distinfo Thu Jan  1 00:00:00 1970
+++ ports/sysutils/mdf2iso/distinfo     Wed Oct 28 13:50:38 2020
@@ -0,0 +1,2 @@
+SHA256 (mdf2iso-master.tar.gz) = Wa6+azbVtgZa031VSP4n/gbs90OCFRy5ef7YH3dxFi8=
+SIZE (mdf2iso-master.tar.gz) = 193384

diff -Nru /var/empty/files/Makefile-doc 
ports/sysutils/mdf2iso/files/Makefile-doc
--- /var/empty/files/Makefile-doc       Thu Jan  1 00:00:00 1970
+++ ports/sysutils/mdf2iso/files/Makefile-doc   Wed Oct 28 13:57:33 2020
@@ -0,0 +1,8 @@
+#!/usr/bin/make -f
+
+all:
+
+install:
+       ${INSTALL} -d -m 755 ${PREFIX}/share/doc/mdf2iso/
+       ${INSTALL} -c -m 644 ChangeLog README.md gpl.txt\
+                             ${PREFIX}/share/doc/mdf2iso/

diff -Nru /var/empty/pkg/PLIST ports/sysutils/mdf2iso/pkg/PLIST
--- /var/empty/pkg/PLIST        Thu Jan  1 00:00:00 1970
+++ ports/sysutils/mdf2iso/pkg/PLIST    Wed Oct 28 14:00:58 2020
@@ -0,0 +1,6 @@
+@comment $OpenBSD: PLIST,v$
+@bin bin/mdf2iso
+share/doc/mdf2iso/
+share/doc/mdf2iso/ChangeLog
+share/doc/mdf2iso/README.md
+share/doc/mdf2iso/gpl.txt

Reply via email to