summaryrefslogtreecommitdiff
path: root/misc/linm
diff options
context:
space:
mode:
authorCHOI Junho <cjh@FreeBSD.org>2006-01-24 03:28:14 +0000
committerCHOI Junho <cjh@FreeBSD.org>2006-01-24 03:28:14 +0000
commit128b0a5cf6225e45702e3e57c16bbd40f60f380e (patch)
treecf030c99a790aa018aaceb7b554f92947c4bc5ed /misc/linm
parentSHA256ify (diff)
Activate linm, mc-style terminal file manager.
Notes
Notes: svn path=/head/; revision=154309
Diffstat (limited to 'misc/linm')
-rw-r--r--misc/linm/Makefile50
-rw-r--r--misc/linm/distinfo3
-rw-r--r--misc/linm/files/patch-Makefile.in50
-rw-r--r--misc/linm/files/patch-lib::define.h10
-rw-r--r--misc/linm/pkg-descr4
-rw-r--r--misc/linm/pkg-plist31
6 files changed, 148 insertions, 0 deletions
diff --git a/misc/linm/Makefile b/misc/linm/Makefile
new file mode 100644
index 000000000000..43de38c4e762
--- /dev/null
+++ b/misc/linm/Makefile
@@ -0,0 +1,50 @@
+# New ports collection makefile for: linm
+# Date created: 24 Jan 2005
+# Whom: cjh@FreeBSD.org
+#
+# $FreeBSD$
+#
+
+PORTNAME= linm
+PORTVERSION= ${LINM_VER}.1
+CATEGORIES= misc shells
+MASTER_SITES= http://kldp.net/frs/download.php/3116/ \
+ ftp://ftp.kr.freebsd.org/pub/kldp.net/download/mls/1.LinMUnstable/LinM${LINM_VER}/
+DISTNAME= linm_${LINM_VER}-1
+
+MAINTAINER= cjh@FreeBSD.org
+COMMENT= Clone of Mdir, mc-style terminal file manager
+
+BUILD_DEPENDS= pkg-config:${PORTSDIR}/devel/pkgconfig
+
+USE_ICONV= yes
+USE_OPENSSL= yes
+GNU_CONFIGURE= yes
+
+CONFIGURE_ENV= CPPFLAGS=-I${LOCALBASE}/include
+
+# does not work now
+#.if defined(WITHOUT_NLS)
+#CONFIGURE_ARGS+=--disable-nls
+#PLIST_SUB+= NLS="@comment "
+#.else
+CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+#.endif
+
+LINM_VER= 0.7.6
+WRKSRC= ${WRKDIR}/linm-${LINM_VER}
+
+post-patch:
+ @${REINPLACE_CMD} -e "s:/etc/linm:${PREFIX}/etc/linm:" "${WRKSRC}/src/ncurses/main_ncurces.cpp"
+
+post-install:
+.if !defined (NOPORTDOCS)
+ ${MKDIR} ${PREFIX}/share/doc/linm
+.for file in AUTHORS COPYING ChangeLog README README.ko_euckr README.ko_utf8
+ ${INSTALL_DATA} ${WRKSRC}/${file} ${DOCSDIR}
+.endfor
+.endif
+
+.include <bsd.port.mk>
diff --git a/misc/linm/distinfo b/misc/linm/distinfo
new file mode 100644
index 000000000000..281f4913adf8
--- /dev/null
+++ b/misc/linm/distinfo
@@ -0,0 +1,3 @@
+MD5 (linm_0.7.6-1.tar.gz) = 52ced032352820a7f0df7e3a89394273
+SHA256 (linm_0.7.6-1.tar.gz) = 213be2aaec1290e439225db1a45d63113ca90b4ba68c25f05b7fb3219fa0744f
+SIZE (linm_0.7.6-1.tar.gz) = 664750
diff --git a/misc/linm/files/patch-Makefile.in b/misc/linm/files/patch-Makefile.in
new file mode 100644
index 000000000000..2f19c0aef369
--- /dev/null
+++ b/misc/linm/files/patch-Makefile.in
@@ -0,0 +1,50 @@
+--- Makefile.in.bak Tue Jan 24 11:36:21 2006
++++ Makefile.in Tue Jan 24 11:40:17 2006
+@@ -657,18 +657,13 @@
+
+ install-exec-hook :
+ if test "x$(DESTDIR)" != x; then \
+- install -d -m 755 $(DESTDIR)/etc/linm && \
+- install -d -m 755 $(DESTDIR)/usr/share/locale/ko/LC_MESSAGES && \
+- install -d -m 755 $(DESTDIR)/etc/profile.d \
++ install -d -m 755 $(DESTDIR)/$(sysconfdir)/linm && \
++ install -d -m 755 $(DESTDIR)/$(datadir)/locale/ko/LC_MESSAGES \
+ ; fi
+
+- if test -w $(DESTDIR)/etc/profile.d ; then \
+- install -c -m 755 $(top_srcdir)/sh/linm_alias.sh $(DESTDIR)/etc/profile.d \
+- ; fi
+-
+- if ! test -d $(DESTDIR)/etc/linm ; then \
+- if test -w $(DESTDIR)/etc ; then \
+- mkdir $(DESTDIR)/etc/linm \
++ if ! test -d $(DESTDIR)/$(sysconfdir)/linm ; then \
++ if test -w $(DESTDIR)/$(sysconfdir) ; then \
++ mkdir $(DESTDIR)/$(sysconfdir)/linm \
+ ; fi \
+ ; fi
+
+@@ -676,20 +671,12 @@
+ install -c -m 644 $(top_srcdir)/sh/default.cfg \
+ $(top_srcdir)/sh/colorset.cfg \
+ $(top_srcdir)/sh/keyset.cfg \
+- $(DESTDIR)/etc/linm \
+- ; else \
+- if ! test -d ~/.linm ; then \
+- mkdir ~/.linm \
+- ; fi && \
+- install -c -m 644 $(top_srcdir)/sh/default.cfg \
+- $(top_srcdir)/sh/colorset.cfg \
+- $(top_srcdir)/sh/keyset.cfg \
+- ~/.linm \
++ $(DESTDIR)/$(sysconfdir)/linm \
+ ; fi
+
+- if test -w $(DESTDIR)/usr/share/locale/ko/LC_MESSAGES; then \
++ if test -w $(DESTDIR)/$(datadir)/locale/ko/LC_MESSAGES; then \
+ install -c -m 644 $(top_srcdir)/locale/linm_euckr.mo $(top_srcdir)/locale/linm_utf8.mo \
+- $(DESTDIR)/usr/share/locale/ko/LC_MESSAGES \
++ $(DESTDIR)/$(datadir)/locale/ko/LC_MESSAGES \
+ ; fi
+
+ uninstall-hook :
diff --git a/misc/linm/files/patch-lib::define.h b/misc/linm/files/patch-lib::define.h
new file mode 100644
index 000000000000..280f1a50a487
--- /dev/null
+++ b/misc/linm/files/patch-lib::define.h
@@ -0,0 +1,10 @@
+--- lib/define.h~ Sat Jan 14 20:55:18 2006
++++ lib/define.h Tue Jan 24 11:16:05 2006
+@@ -39,6 +39,7 @@
+ # endif
+
+ #ifdef HAVE_GETTEXT
++ #include <libintl.h>
+ #define _(Text) gettext(Text)
+ #else
+ #define _(Text) Text
diff --git a/misc/linm/pkg-descr b/misc/linm/pkg-descr
new file mode 100644
index 000000000000..033a718821cd
--- /dev/null
+++ b/misc/linm/pkg-descr
@@ -0,0 +1,4 @@
+linm/mls is a clone of Mdir, the popular file manager from the MS-DOS
+age in Korea.
+
+WWW: http://kldp.net/projects/mls/
diff --git a/misc/linm/pkg-plist b/misc/linm/pkg-plist
new file mode 100644
index 000000000000..94fbc10f9864
--- /dev/null
+++ b/misc/linm/pkg-plist
@@ -0,0 +1,31 @@
+@comment $FreeBSD$
+bin/linm
+bin/linm.csh
+bin/linm.sh
+etc/linm/colorset.cfg
+etc/linm/default.cfg
+etc/linm/keyset.cfg
+@dirrm etc/linm
+lib/liblinmpluginarc.a
+lib/liblinmpluginarc.la
+lib/liblinmpluginarc.so
+lib/liblinmpluginarc.so.0
+lib/liblinmpluginftp.a
+lib/liblinmpluginftp.la
+lib/liblinmpluginftp.so
+lib/liblinmpluginftp.so.0
+lib/liblinmpluginsftp.a
+lib/liblinmpluginsftp.la
+lib/liblinmpluginsftp.so
+lib/liblinmpluginsftp.so.0
+%%PORTDOCS%%%%DOCSDIR%%/AUTHORS
+%%PORTDOCS%%%%DOCSDIR%%/COPYING
+%%PORTDOCS%%%%DOCSDIR%%/ChangeLog
+%%PORTDOCS%%%%DOCSDIR%%/README
+%%PORTDOCS%%%%DOCSDIR%%/README.ko_euckr
+%%PORTDOCS%%%%DOCSDIR%%/README.ko_utf8
+%%PORTDOCS%%@dirrm %%DOCSDIR%%
+%%NLS%%share/locale/ko/LC_MESSAGES/linm_euckr.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/linm_utf8.mo
+%%NLS%%@dirrmtry share/locale/ko/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ko