From nobody Sun Nov 03 19:38:16 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XhPzd2Tr2z5chJx for ; Sun, 03 Nov 2024 19:38:53 +0000 (UTC) (envelope-from sunpoet@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XhPzc6VGrz4xn7 for ; Sun, 3 Nov 2024 19:38:52 +0000 (UTC) (envelope-from sunpoet@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730662732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X/eLO0x0eXFZUlspPBzmotJbzSB4tH1eKKbYaugYM4Y=; b=vuHzcjoCJkTKhqPwU82tPe4y4zI6Md/YoZZdMz1shi76jwVL5mHoI2UX61iC5FEbEzyAD8 RO/VR0NnFpmqFFRR06msZhwUHn8gC18UNLTXLWJNrIHhG2k4BmcgNG3rf+TvYE8KYYvPWf pJSDLIWzYyFzHOc/uXr8FASYEYBG7bXFMmmKRwOb4sb35cZYUoynE6asA1Ikhn3hUUD6BW 82tHNQfpgVsRGNYQD7dnd31y6X0EV9RnSoIEOGiAKjL8ZSOSn+2ppsEW51Ftt9RN8ho6XF YE2uIpurpYBmmaks5EpVgij5LqoX4VEBwFJVb5KThjDaBUpqxi3WOFHIrA6xAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730662732; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=X/eLO0x0eXFZUlspPBzmotJbzSB4tH1eKKbYaugYM4Y=; b=ASPqmmpc7grvP/VSEaSG9beoC9G8cIGCcT4G+p1wkxe+18NP7TWS/fXMwdpBr0Svv/XrDj pcE5nsNBVaMhVcEHZfkC78b+xlFtSqv3Z3ZaW2/ZMKU9rKPMWf7VI4I2ykE75Ryp1NnL+c CPBztv2RiX+0NGy/XAxsKe5kxLZP6FW0G7wAXrKY39+3H6eHjeEhvaQi9GwGTdB0Nca145 5fwIQffNaBYGsRvnRgjQSlUKVPbh0IJSENYPgKlDHVCbXkEhYWTtlHy+n48hm1E5Q1HiXD 3QIYtxJBGa2DT8S2EPSYovtaO9N1CBsTgnIOyNVyYpZmfSED+gWIlhY+BIkdIw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730662732; a=rsa-sha256; cv=none; b=YvzHP+8ZQQoFyJKYaO8wgZJLqIiYKkD8e4/v4dimpbJM+Hm5QHe+1AxI93tFEDm4FFAn2T 1NwbNp79sdcRexWG9Sm8U6E7TUO46UTh6BON/nBtPBFLj4pp4+7SuopV7PA2cFrNoK5LGB YWBVpg1x87hIttfHfeecWbQAP/Kw4vzBcZAYvDj+AiumZVTpC2iKbE0N8cfBRzQa+wQxeC V5mbgOHAUmyhaOc8UJMxPTKTVQN8bDb4NtujfIulXp9ojCBfCfNAp7jU/HO3PkjxRnyBTo zJX7b7Eph+aA34lxrtGdRpjrtk/M6H1UbWnOP2PYgICg6VXpo/+UjN97o2pZPw== Received: from mail-ed1-f45.google.com (mail-ed1-f45.google.com [209.85.208.45]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) (Authenticated sender: sunpoet) by smtp.freebsd.org (Postfix) with ESMTPSA id 4XhPzc5QPwzF29 for ; Sun, 3 Nov 2024 19:38:52 +0000 (UTC) (envelope-from sunpoet@freebsd.org) Received: by mail-ed1-f45.google.com with SMTP id 4fb4d7f45d1cf-5cb6b2b7127so4352317a12.1 for ; Sun, 03 Nov 2024 11:38:52 -0800 (PST) X-Forwarded-Encrypted: i=1; AJvYcCW4bEGwve++oEnj4mvLZH/P3AuwVUbubsp2TSm0wR7J7AFRmfYxOjDuS5AnLRUeilt0bfVsFkGLjGLWYc8U8gwiwlzJXw2H@freebsd.org X-Gm-Message-State: AOJu0YzViyuKns8iUqCxP8YG96QkeCLSmkqrPX+wZOC8x6V1duxmj49q ouHNzzxXvi/fkgZmaExQgEy2mnpej14GSdinYxN4zOPI36ac1eYsqxUkeUYVz++18VbmgZVVjJt 0/azVeSHV76YDgS99X1x1Eqj7EzpNB4caUDwQGA== X-Google-Smtp-Source: AGHT+IFbkN7ITKqK3ksTQwDqr3LB7JGN3iyzfaXVAPoYS8KtCsoMx5VdUK+SBrWsyft2IvQweyKMvCowuRX0irigLHA= X-Received: by 2002:a05:6402:4307:b0:5ce:af01:6349 with SMTP id 4fb4d7f45d1cf-5ceaf016b6amr8886469a12.3.1730662731716; Sun, 03 Nov 2024 11:38:51 -0800 (PST) List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 References: <202411031150.4A3BoQui041672@gitrepo.freebsd.org> In-Reply-To: From: Po-Chuan Hsieh Date: Mon, 4 Nov 2024 03:38:16 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: git: 4ddfd281f8eb - main - misc/getopt: Re-add getopt 1.1.6 To: Daniel Engberg Cc: ports-committers@freebsd.org, dev-commits-ports-all@freebsd.org, dev-commits-ports-main@freebsd.org Content-Type: multipart/alternative; boundary="00000000000059c5b2062607519d" --00000000000059c5b2062607519d Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Nov 3, 2024 at 8:30=E2=80=AFPM Daniel Engberg < daniel.engberg.lists@pyret.net> wrote: > On 2024-11-03T12:50:26.000+01:00, Po-Chuan Hsieh > wrote: > > > The branch main has been updated by sunpoet: > > URL: https://cgit.FreeBSD.org/ports/commit/?id=3D4ddfd281f8eb07657fd1e268= fed59478a4a2ce38 > > commit 4ddfd281f8eb07657fd1e268fed59478a4a2ce38 > Author: Po-Chuan Hsieh > AuthorDate: 2024-11-03 11:34:23 +0000 > Commit: Po-Chuan Hsieh > CommitDate: 2024-11-03 11:34:23 +0000 > > misc/getopt: Re-add getopt 1.1.6 > > PR: 281625 > --- > MOVED | 1 - > misc/Makefile | 1 + > misc/getopt/Makefile | 38 +++++++++++++++++++++++++++++++ > misc/getopt/distinfo | 3 +++ > misc/getopt/files/patch-Makefile | 49 ++++++++++++++++++++++++++++++++++= ++++++ > misc/getopt/pkg-descr | 11 +++++++++ > misc/getopt/pkg-plist | 28 +++++++++++++++++++++++ > 7 files changed, 130 insertions(+), 1 deletion(-) > > diff --git a/MOVED b/MOVED > index 7d96a4d146ee..6d75cf949f97 100644 > --- a/MOVED > +++ b/MOVED > @@ -3577,4 +3577,3 @@ misc/uk-phone||2024-10-31|Has expired: Obsolete, 20= + year old data > textproc/ssddiff||2024-10-31|Has expired: Abandonware, unfetchable and u= pstream is gone > sysutils/pydf||2024-11-02|Has expired: Inactive upstream. Does not prope= rly work on FreeBSD > ports-mgmt/freebsd-bugzilla-cli||2024-11-02|Has expired: Broken. Upstrea= m unavailable > -misc/getopt||2024-11-02|Has expired: Use getopt from devel/util-linux in= stead > diff --git a/misc/Makefile b/misc/Makefile > index f6b464417a65..34195fc80e54 100644 > --- a/misc/Makefile > +++ b/misc/Makefile > @@ -152,6 +152,7 @@ > SUBDIR +=3D g810-led > SUBDIR +=3D gedkeeper > SUBDIR +=3D geekcode > + SUBDIR +=3D getopt > SUBDIR +=3D gimp-help-en > SUBDIR +=3D gkrellm-gamma > SUBDIR +=3D gkrellm-xkb > diff --git a/misc/getopt/Makefile b/misc/getopt/Makefile > new file mode 100644 > index 000000000000..7dcb45220b28 > --- /dev/null > +++ b/misc/getopt/Makefile > @@ -0,0 +1,38 @@ > +PORTNAME=3D getopt > +PORTVERSION=3D 1.1.6 > +PORTREVISION=3D 1 > +CATEGORIES=3D misc > +MASTER_SITES=3D http://frodo.looijaard.name/system/files/software/getopt= / \ > + LOCAL/sunpoet > + > +MAINTAINER=3D sunpoet@FreeBSD.org > +COMMENT=3D Replacement for getopt(1) that supports GNU-style long option= s > +WWW=3D https://software.frodo.looijaard.name/getopt/ > + > +LICENSE=3D GPLv2 GPLv3 > +LICENSE_COMB=3D dual > + > +DEPRECATED=3D Use getopt from devel/util-linux instead > +EXPIRATION_DATE=3D2024-10-31 > + > +OPTIONS_DEFINE=3D DOCS NLS > +OPTIONS_SUB=3D yes > + > +MAKE_ARGS=3D CC=3D${CC} LIBCGETOPT=3D0 > +USES=3D gmake > + > +PORTDOCS=3D Changelog README > + > +NLS_MAKE_ARGS=3D WITHOUT_GETTEXT=3D0 > +NLS_MAKE_ARGS_OFF=3D WITHOUT_GETTEXT=3D1 > +NLS_LDFLAGS=3D -lintl > +NLS_USES=3D gettext localbase:ldflags > + > +post-install: > + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt > + > +post-install-DOCS-on: > + ${MKDIR} ${STAGEDIR}${DOCSDIR}/ > + cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/ > + > +.include ; > diff --git a/misc/getopt/distinfo b/misc/getopt/distinfo > new file mode 100644 > index 000000000000..649952d571db > --- /dev/null > +++ b/misc/getopt/distinfo > @@ -0,0 +1,3 @@ > +TIMESTAMP =3D 1730633654 > +SHA256 (getopt-1.1.6.tar.gz) =3D d0bf1dc642a993e7388a1cddfb9409bed375c21= d5278056ccca3a0acd09dc5fe > +SIZE (getopt-1.1.6.tar.gz) =3D 58926 > diff --git a/misc/getopt/files/patch-Makefile b/misc/getopt/files/patch-M= akefile > new file mode 100644 > index 000000000000..3383ee09c28f > --- /dev/null > +++ b/misc/getopt/files/patch-Makefile > @@ -0,0 +1,49 @@ > +--- Makefile.orig 2014-11-24 12:33:39 UTC > ++++ Makefile > +@@ -1,9 +1,9 @@ DESTDIR=3D > + .SUFFIXES: > + > + DESTDIR=3D > +-prefix=3D/usr/local > ++prefix=3D$(PREFIX) > + bindir=3D$(prefix)/bin > +-mandir=3D$(prefix)/man > ++mandir=3D$(prefix)/share/man > + man1dir=3D$(mandir)/man1 > + sharedir=3D$(prefix)/share > + getoptdir=3D$(sharedir)/getopt > +@@ -32,18 +32,15 @@ MOFILES:=3D$(patsubst %,po/%.mo,$(LANGUAGES)) > + LANGUAGES =3D ca cs da de es et eu fi fr gl hr hu id it ja nl pl pt_BR = ru sl sv tr uk vi zh_CN zh_TW > + MOFILES:=3D$(patsubst %,po/%.mo,$(LANGUAGES)) > + > +-CPPFLAGS=3D-DLIBCGETOPT=3D$(LIBCGETOPT) -DWITHOUT_GETTEXT=3D$(WITHOUT_G= ETTEXT) -DLOCALEDIR=3D\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocatio= n_short_name=3D\"$(PACKAGE)\" -Dprogram_version=3D\"$(VERSION)\" > ++CPPFLAGS+=3D-DLIBCGETOPT=3D$(LIBCGETOPT) -DWITHOUT_GETTEXT=3D$(WITHOUT_= GETTEXT) -DLOCALEDIR=3D\"$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocati= on_short_name=3D\"$(PACKAGE)\" -Dprogram_version=3D\"$(VERSION)\" > + ifeq ($(LIBCGETOPT),0) > +-CPPFLAGS+=3D-I./gnu > ++CPPFLAGS+=3D-I./gnu > + endif > + WARNINGS=3D-Wall \ > + -W -Wshadow -Wpointer-arith -Wbad-function-cast -Wcast-qual \ > + -Wcast-align -Wmissing-declarations \ > + -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes \ > + -Wnested-externs -Winline > +-OPTIMIZE=3D-O3 -fno-strength-reduce > +-CFLAGS=3D$(WARNINGS) $(OPTIMIZE) > +-LDFLAGS=3D > + > + sources=3Dgetopt.c > + ifeq ($(LIBCGETOPT),0) > +@@ -54,11 +51,11 @@ binaries=3Dgetopt > + > + binaries=3Dgetopt > + > +-.PHONY: all clean realclean > ++.PHONY: all clean realclean > + all: $(binaries) all_po > + > + clean: clean_po > +- -$(RM) $(objects) $(binaries) > ++ -$(RM) $(objects) $(binaries) > + > + getopt: $(objects) > + $(CC) $(LDFLAGS) -o $@ $(objects) > diff --git a/misc/getopt/pkg-descr b/misc/getopt/pkg-descr > new file mode 100644 > index 000000000000..799c23ba34c8 > --- /dev/null > +++ b/misc/getopt/pkg-descr > @@ -0,0 +1,11 @@ > +Rewrite of getopt(1) with the following features: > + > +* It can do anything that the GNU getopt(3) routines can do. > +* It can cope with spaces and shell metacharacters within arguments. > +* It can parse long parameters. > +* It can shuffle parameters, so you can mix options and other parameters > + on the command-line. > +* It can be easily identified as an enhanced getopt(1) from within shell > + scripts. > +* It can report parse errors as coming from the shell script. > +* It compiles cleanly with both libc-5 and glibc-2. > diff --git a/misc/getopt/pkg-plist b/misc/getopt/pkg-plist > new file mode 100644 > index 000000000000..c1a68f51212d > --- /dev/null > +++ b/misc/getopt/pkg-plist > @@ -0,0 +1,28 @@ > +bin/getopt > +%%NLS%%share/locale/ca/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/cs/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/da/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/de/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/es/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/et/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/eu/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/fi/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/fr/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/gl/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/hr/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/hu/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/id/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/it/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/ja/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/nl/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/pl/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/pt_BR/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/ru/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/sl/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/sv/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/tr/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/uk/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/vi/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/zh_CN/LC_MESSAGES/getopt.mo > +%%NLS%%share/locale/zh_TW/LC_MESSAGES/getopt.mo > +share/man/man1/getopt.1.gz > > Hi, > > Versioning is incorrect > > work/stage/usr/local/bin/getopt -V > getopt from util-linux 2.39.4 > > This approach is also bound to get unsynced with util-linux, if anything > it should be a slave port until subpackages are usable. > > Best regards, > Daniel > Why should this port get in sync with util-linux port? --00000000000059c5b2062607519d Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, Nov 3, 2024 at 8:30=E2=80=AFPM Da= niel Engberg <daniel.e= ngberg.lists@pyret.net> wrote:
On 2= 024-11-03T12:50:26.000+01:00, Po-Chuan Hsieh <sunpoet@FreeBSD.org> wr= ote:


The branch main has bee= n updated by sunpoet:


commit 4ddfd281f8eb07657fd1e268fed59478a4a2ce38
<= div>Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024= -11-03 11:34:23 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org&g= t;
CommitDate: 2024-11-03 11:34:23 +0000

misc/getopt: Re-add getopt 1.1.6

<= div> PR: 281625
---
MOVED = | 1 -
misc/Makefile = | 1 +
misc/getopt/Makefile | 38 +++++++++++++= ++++++++++++++++++
misc/getopt/distinfo | 3 +++=
misc/getopt/files/patch-Makefile | 49 +++++++++++++++++++++= +++++++++++++++++++
misc/getopt/pkg-descr | 11 ++= +++++++
misc/getopt/pkg-plist | 28 ++++++++++++++= +++++++++
7 files changed, 130 insertions(+), 1 deletion(-)<= br>

diff --git a/MOVED b/MOVED
index= 7d96a4d146ee..6d75cf949f97 100644
--- a/MOVED
= +++ b/MOVED
@@ -3577,4 +3577,3 @@ misc/uk-phone||2024-10-31|H= as expired: Obsolete, 20+ year old data
textproc/ssddiff||20= 24-10-31|Has expired: Abandonware, unfetchable and upstream is gone
sysutils/pydf||2024-11-02|Has expired: Inactive upstream. Does not = properly work on FreeBSD
ports-mgmt/freebsd-bugzilla-cli||20= 24-11-02|Has expired: Broken. Upstream unavailable
-misc/geto= pt||2024-11-02|Has expired: Use getopt from devel/util-linux instead
diff --git a/misc/Makefile b/misc/Makefile
index f6b4= 64417a65..34195fc80e54 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -152,6 +152,7 @@
= SUBDIR +=3D g810-led
SUBDIR +=3D gedkeeper
SUBDIR +=3D geekcode
+ SUBDIR +=3D getopt
=
SUBDIR +=3D gimp-help-en
SUBDIR +=3D gkrellm-g= amma
SUBDIR +=3D gkrellm-xkb
diff --git a/= misc/getopt/Makefile b/misc/getopt/Makefile
new file mode 100= 644
index 000000000000..7dcb45220b28
--- /dev/n= ull
+++ b/misc/getopt/Makefile
@@ -0,0 +1,38 @@=
+PORTNAME=3D getopt
+PORTVERSION=3D 1.1.6
<= /div>
+PORTREVISION=3D 1
+CATEGORIES=3D misc
+MASTER_SITES=3D http://frodo.lo= oijaard.name/system/files/software/getopt/ \
+ LOCAL/sun= poet
+
+MAINTAINER=3D sunpoet@FreeBSD.org
+COMM= ENT=3D Replacement for getopt(1) that supports GNU-style long options
+
+LICENSE=3D GPLv2 GPLv3=
+LICENSE_COMB=3D dual
+
+DEPRECA= TED=3D Use getopt from devel/util-linux instead
+EXPIRATION_D= ATE=3D2024-10-31
+
+OPTIONS_DEFINE=3D DOCS NLS<= br>
+OPTIONS_SUB=3D yes
+
+MAKE_ARGS= =3D CC=3D${CC} LIBCGETOPT=3D0
+USES=3D gmake
+=
+PORTDOCS=3D Changelog README
+
= +NLS_MAKE_ARGS=3D WITHOUT_GETTEXT=3D0
+NLS_MAKE_ARGS_OFF=3D = WITHOUT_GETTEXT=3D1
+NLS_LDFLAGS=3D -lintl
+NL= S_USES=3D gettext localbase:ldflags
+
+post-in= stall:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/getopt
+
+post-install-DOCS-on:
+ ${MKDIR} ${ST= AGEDIR}${DOCSDIR}/
+ cd ${WRKSRC}/ && ${INSTALL_DATA}= ${PORTDOCS} ${STAGEDIR}${DOCSDIR}/
+
+.include= <bsd.port.mk>;
diff --git a/misc/getopt/dis= tinfo b/misc/getopt/distinfo
new file mode 100644
index 000000000000..649952d571db
--- /dev/null
+++ b/misc/getopt/distinfo
@@ -0,0 +1,3 @@
+= TIMESTAMP =3D 1730633654
+SHA256 (getopt-1.1.6.tar.gz) =3D d0= bf1dc642a993e7388a1cddfb9409bed375c21d5278056ccca3a0acd09dc5fe
+SIZE (getopt-1.1.6.tar.gz) =3D 58926
diff --git a/misc/get= opt/files/patch-Makefile b/misc/getopt/files/patch-Makefile
n= ew file mode 100644
index 000000000000..3383ee09c28f
--- /dev/null
+++ b/misc/getopt/files/patch-Makefile
@@ -0,0 +1,49 @@
+--- Makefile.orig 2014-11-24 12= :33:39 UTC
++++ Makefile
+@@ -1,9 +1,9 @@ DESTD= IR=3D
+ .SUFFIXES:
+
+ DESTDIR= =3D
+-prefix=3D/usr/local
++prefix=3D$(PREFIX)<= br>
+ bindir=3D$(prefix)/bin
+-mandir=3D$(prefix)/m= an
++mandir=3D$(prefix)/share/man
+ man1dir=3D$= (mandir)/man1
+ sharedir=3D$(prefix)/share
+ ge= toptdir=3D$(sharedir)/getopt
+@@ -32,18 +32,15 @@ MOFILES:=3D= $(patsubst %,po/%.mo,$(LANGUAGES))
+ LANGUAGES =3D ca cs da d= e es et eu fi fr gl hr hu id it ja nl pl pt_BR ru sl sv tr uk vi zh_CN zh_T= W
+ MOFILES:=3D$(patsubst %,po/%.mo,$(LANGUAGES))
+
+-CPPFLAGS=3D-DLIBCGETOPT=3D$(LIBCGETOPT) -DWITHOUT_GET= TEXT=3D$(WITHOUT_GETTEXT) -DLOCALEDIR=3D\"$(localedir)\" -DNOT_UT= IL_LINUX -Dprogram_invocation_short_name=3D\"$(PACKAGE)\" -Dprog= ram_version=3D\"$(VERSION)\"
++CPPFLAGS+=3D-DLIBCGE= TOPT=3D$(LIBCGETOPT) -DWITHOUT_GETTEXT=3D$(WITHOUT_GETTEXT) -DLOCALEDIR=3D\= "$(localedir)\" -DNOT_UTIL_LINUX -Dprogram_invocation_short_name= =3D\"$(PACKAGE)\" -Dprogram_version=3D\"$(VERSION)\"
+ ifeq ($(LIBCGETOPT),0)
+-CPPFLAGS+=3D-I./gnu <= br>
++CPPFLAGS+=3D-I./gnu
+ endif
+ W= ARNINGS=3D-Wall \
+ -W -Wshadow -Wpointer-arith -Wba= d-function-cast -Wcast-qual \
+ -Wcast-align -Wmissi= ng-declarations \
+ -Wwrite-strings -Wstrict-prototy= pes -Wmissing-prototypes \
+ -Wnested-externs -Winli= ne
+-OPTIMIZE=3D-O3 -fno-strength-reduce
+-CFLA= GS=3D$(WARNINGS) $(OPTIMIZE)
+-LDFLAGS=3D
+
+ sources=3Dgetopt.c
+ ifeq ($(LIBCGETOPT),0)
=
+@@ -54,11 +51,11 @@ binaries=3Dgetopt
+
+ binaries=3Dgetopt
+
+-.PHONY: all clea= n realclean
++.PHONY: all clean realclean
+ al= l: $(binaries) all_po
+
+ clean: clean_po
<= /div>
+- -$(RM) $(objects) $(binaries)
++ -$(RM) $(objec= ts) $(binaries)
+
+ getopt: $(objects)
+ $(CC) $(LDFLAGS) -o $@ $(objects)
diff --git a/misc= /getopt/pkg-descr b/misc/getopt/pkg-descr
new file mode 10064= 4
index 000000000000..799c23ba34c8
--- /dev/nul= l
+++ b/misc/getopt/pkg-descr
@@ -0,0 +1,11 @@<= br>
+Rewrite of getopt(1) with the following features:
<= div>+
+* It can do anything that the GNU getopt(3) routines c= an do.
+* It can cope with spaces and shell metacharacters wi= thin arguments.
+* It can parse long parameters.
+* It can shuffle parameters, so you can mix options and other parameters=
+ on the command-line.
+* It can be easily id= entified as an enhanced getopt(1) from within shell
+ script= s.
+* It can report parse errors as coming from the shell scr= ipt.
+* It compiles cleanly with both libc-5 and glibc-2.
=
diff --git a/misc/getopt/pkg-plist b/misc/getopt/pkg-plist
new file mode 100644
index 000000000000..c1a68f51212= d
--- /dev/null
+++ b/misc/getopt/pkg-plist
=
@@ -0,0 +1,28 @@
+bin/getopt
+%%NLS%= %share/locale/ca/LC_MESSAGES/getopt.mo
+%%NLS%%share/loca= le/cs/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/da/LC_ME= SSAGES/getopt.mo
+%%NLS%%share/locale/de/LC_MESSAGES/geto= pt.mo
+%%NLS%%share/locale/es/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/et/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/getopt.mo
+%%NLS%%s= hare/locale/fi/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale= /fr/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/gl/LC_MESS= AGES/getopt.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/getopt= .mo
+%%NLS%%share/locale/hu/LC_MESSAGES/getopt.mo
=
+%%NLS%%share/locale/id/LC_MESSAGES/getopt.mo
= +%%NLS%%share/locale/it/LC_MESSAGES/getopt.mo
+%%NLS%%sha= re/locale/ja/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/n= l/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/pl/LC_MESSAG= ES/getopt.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/getop= t.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/getopt.mo
+%%NLS%%sh= are/locale/tr/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/= uk/LC_MESSAGES/getopt.mo
+%%NLS%%share/locale/vi/LC_MESSA= GES/getopt.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/geto= pt.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/getopt.mo

<= div>
Why=20 should this port get in sync with util-linux port?
--00000000000059c5b2062607519d--