Bug 89029 - [maintainer-update] sysutils/mapchan: take maintainership, update to new version 2.0, unbreak fetching
Summary: [maintainer-update] sysutils/mapchan: take maintainership, update to new vers...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: freebsd-ports-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-14 20:30 UTC by Boris B.Samorodov
Modified: 2005-11-14 22:15 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Boris B.Samorodov 2005-11-14 20:30:10 UTC
	1. Take maintainership.
	2. Update to new version 2.0.
	3. Unbreak fetching.
	4. Undeprecate the port. ;-)

Fix: The patch is relative to the port:
	# cd /usr/ports/sysutils
	# patch -p0 < _the_patch_
	<delete mapchan/*.orig mapchan/files/*.orig files>



WBR
-- 
bsam--xsvP7EKPt36DjkvMovbGxFH9BFR9QDirkQ9WX7tIbZ9I8E4h
Content-Type: text/plain; name="mapchan.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="mapchan.patch"

diff -ruN mapchan.orig/Makefile mapchan/Makefile
--- mapchan.orig/Makefile	Mon Nov 14 22:33:38 2005
+++ mapchan/Makefile	Mon Nov 14 23:12:57 2005
@@ -6,16 +6,12 @@
 #
 
 PORTNAME=	mapchan
-PORTVERSION=	1.4
+PORTVERSION=	2.0
 CATEGORIES=	sysutils converters
 MASTER_SITES=	http://www.iceb.vinnitsa.com/download/
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bsam@ipt.ru
 COMMENT=	Implementation of the utility "mapchan" from SCO Unix
-
-BROKEN=		"1.4 is unfetchable but 2.0 is available from the site"
-DEPRECATED=	${BROKEN}
-EXPIRATION_DATE=	2005-12-09
 
 USE_BZIP2=	yes
 USE_REINPLACE=	yes
diff -ruN mapchan.orig/distinfo mapchan/distinfo
--- mapchan.orig/distinfo	Mon Nov 14 22:33:38 2005
+++ mapchan/distinfo	Mon Nov 14 23:07:35 2005
@@ -1 +1,3 @@
-MD5 (mapchan-1.4.tar.bz2) = 3dc874899b0e00e298f0f1b1a5622993
+MD5 (mapchan-2.0.tar.bz2) = b0a889deafc4b2fdd9658a038bb13e13
+SHA256 (mapchan-2.0.tar.bz2) = 348b202db14bf200b02d4b18c20b6e059db457e47b5b567eaa7af161045f50d6
+SIZE (mapchan-2.0.tar.bz2) = 22547
diff -ruN mapchan.orig/files/patch-Makefile mapchan/files/patch-Makefile
--- mapchan.orig/files/patch-Makefile	Mon Nov 14 22:33:38 2005
+++ mapchan/files/patch-Makefile	Mon Nov 14 23:07:35 2005
@@ -1,11 +1,23 @@
---- Makefile.orig Sat Dec 23 09:47:25 2000
-+++ Makefile Thu Aug  7 00:43:27 2003
-@@ -11,7 +11,7 @@
- # (2) If your system has not basename() function - uncomment next string
- #DEFS+=-DNOBASENAME
-
--BINDIR=/bin
-+BINDIR=$(PREFIX)/bin
- LDFLAGS=-lutil
+--- Makefile.orig	Wed Jul  6 00:16:36 2005
++++ Makefile	Mon Nov 14 22:52:35 2005
+@@ -1,6 +1,6 @@
+ #
+ #
+-CFLAGS=-O2
++CFLAGS?=$(CFLAGS)
+ # 
+ # Defines:
+ #DEFS=
+@@ -14,9 +14,9 @@
+ # (3) If need call /bin/sh for parsing argument of option -s
+ DEFS+=-DEXEC_SHELL
+ 
+-BINDIR ?= /bin
+-MAPDIR ?= /etc/mapchan
+-LDFLAGS=-s
++BINDIR?=$(PREFIX)/bin
++MAPDIR?=$(PREFIX)/mapchan
++LDFLAGS=-s -lutil
+ LOADLIBES=-lutil
  #--------------------------------------------------------------
  CFLAGS += $(DEFS)
diff -ruN mapchan.orig/files/patch-mapchan.c mapchan/files/patch-mapchan.c
--- mapchan.orig/files/patch-mapchan.c	Mon Nov 14 22:33:38 2005
+++ mapchan/files/patch-mapchan.c	Mon Nov 14 23:07:35 2005
@@ -9,17 +9,3 @@
  #endif
  
  #define BUFSIZE 4096
-@@ -51,10 +51,10 @@
- 
- char usage[] = { "\nUsage:\n\nmapchan [-q] [-s shell] [-f file]\
-  [-h]\n\nwhere:\n\
--\tshell     - shell, if not /bin/sh
-+\tshell     - shell, if not /bin/sh\n\
- \tfile      - input file\n\
--\t-q	    - force and quiet
--\t-h    - print this screen and exit.\n" };
-+\t-q        - force and quiet\n\
-+\t-h        - print this screen and exit.\n" };
- 
- int pty_fd;     /* ÄÅÓËÒÉÐÔÏÒ master */
- int tty_fd;     /* ÄÅÓËÒÉÐÔÏÒ slave */
diff -ruN mapchan.orig/pkg-plist mapchan/pkg-plist
--- mapchan.orig/pkg-plist	Mon Nov 14 22:33:38 2005
+++ mapchan/pkg-plist	Mon Nov 14 23:07:35 2005
@@ -2,9 +2,13 @@
 etc/mapchan/altkoi.map
 etc/mapchan/default.sample
 etc/mapchan/dos2koi.map
+etc/mapchan/dos2koi-kbd.map
 etc/mapchan/k180.map
+etc/mapchan/koi2win.map
 etc/mapchan/koiualt.map
 etc/mapchan/koiumain.map
+etc/mapchan/msm.map
+etc/mapchan/trivial.map
 etc/mapchan/sm7238.map
 etc/mapchan/win2koi.map
 @unexec rmdir %D/etc/mapchan 2>/dev/null || true
Comment 1 Marcus Alves Grando freebsd_committer 2005-11-14 22:15:41 UTC
State Changed
From-To: open->closed

Committed. Thanks!