Commit graph

252 commits

Author SHA1 Message Date
Yasuhiro Kimura
defd64ec3c shells/zsh: Revert "shells/zsh: Add BASE_ZSH option"
This reverts commit ae1787aab2.

Requested by:	maintainer
2021-11-26 17:34:58 +09:00
Yasuhiro Kimura
ae1787aab2 shells/zsh: Add BASE_ZSH option
Add new option BASE_ZSH that makes zsh and rzsh also available as
/bin/zsh and /bin/rzsh.

Under ports flamework everything is installed under /usr/local unless
custom prefix is used. And according to it zsh is installed as
/usr/local/bin/zsh. But on most Linux based OSes zsh is installed as
/bin/zsh. And it causes problem if user's account information is
shared between FreeBSD and Linux by using such tools as LDAP or NIS as
account information also includes absolute path of user's login shell.
To work around it I have created /bin/zsh as symbolic link referencing
/usr/local/bin/zsh and also edited /etc/shells to add /bin/zsh to it
every time I set up new FreeBSD system. But it's quite bothersome and
that is why I add new BASE_ZSH option.

While I'm here,

* Pet portclippy
* Re-format Makefile with portfmt

PR:		259109
Proposed by:	Chris Hutchinson (more intuitive option name)
Approved by:	maintainer timeout (> 2 weeks)
2021-11-26 09:53:36 +09:00
Bernhard Froehlich
de4d421d74
shells/zsh: Add CPE information
Approved by:	portmgr (blanket)
2021-09-08 20:53:39 +00:00
Mathieu Arnold
305f148f48
Remove # $FreeBSD$ from Makefiles. 2021-04-06 16:31:07 +02:00
Mateusz Piotrowski
87fe7293c3 Switch to USES=localbase:ldflags
Approved by:	portmgr blanket
2020-11-03 13:30:38 +00:00
Fukang Chen
ba1c6ab949 shells/zsh: Fix build with devel/ncurses 6.2
When devel/ncurses is installed in the system, the Zsh configure script
detects and uses ${LOCALBASE}/include/ncurses/ncurses.h instead.

The patch is obtained from this commit:
c6a8516361/

cc -c -I. -I../../Src -I../../Src -I../../Src/Zle -I. -I/usr/local/include -DBOOL_DEFINED -DLIBICONV_PLUG -DHAVE_CONFIG_H -DMODULE -O2 -pipe  -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -fPIC -o curses..o curses.c
In file included from curses.c:210:
./curses_keys.h:93:15: error: use of undeclared identifier 'KEY_EVENT'
    {"EVENT", KEY_EVENT},
              ^
1 error generated.
*** Error code 1

Reviewed by:	koobs
Approved by:	koobs (ports, mentor)
Differential Revision:	https://reviews.freebsd.org/D26355
MFH:		2020Q3 (build fix)
2020-09-13 02:49:35 +00:00
Baptiste Daroussin
6a601648bc Update to 5.8
Fix sites-functions not respecting PREFIX != LOCALBASE
Don't document the security issue CVE-2019-20044 as it does not
impact FreeBSD
2020-02-16 08:42:00 +00:00
Tobias Kortkamp
49b3d39d73 shells/zsh: Spell PORTREVISION correctly 2019-06-04 06:43:05 +00:00
Baptiste Daroussin
a82adb747b Only show the pkg-message on installation, never do it on upgrades 2019-06-04 06:08:05 +00:00
Baptiste Daroussin
4377815d68 Update to 5.7.1 2019-02-05 17:58:51 +00:00
Sunpoet Po-Chuan Hsieh
7e6ea4bcad Update MASTER_SITES and WWW
Approved by:	portmgr (blanket)
2019-01-27 19:58:26 +00:00
Baptiste Daroussin
3f35201af5 Add a patch to fix an infinite recursion when using VCS_info
Reported by:	ume
2019-01-27 16:43:30 +00:00
Baptiste Daroussin
2bf3dda12b Commit forgotten patch:
Mandoc was not able to find zshbuiltin.1 in the path
2019-01-27 15:37:13 +00:00
Baptiste Daroussin
2c706b0257 Update to 5.7 2019-01-27 14:11:57 +00:00
Alexey Dokuchaev
936a36e30d Update `databases/gdbm' to version 1.18.1, an important bugfix release
which restores compatibility with old databases (version 1.8) and some
later versions which were built without mmap(2) support.  Due to shlib
version change, bump port revisions of the consumer ports.

PR:		233059
Exp-run by:	antoine
Approved by:	maintainer (johans, numerous timeouts)
2018-11-11 15:38:50 +00:00
Baptiste Daroussin
4502331122 Update to 5.6.2 2018-09-15 05:59:30 +00:00
Baptiste Daroussin
915eeb1c3a update to 5.6.1 2018-09-11 07:46:57 +00:00
Baptiste Daroussin
fb9b05a4f3 Update to 5.6
Security:	CVE-2018-0502, CVE-2018-13259
2018-09-05 07:27:13 +00:00
Baptiste Daroussin
46aa5e2216 Update to 5.5.1 2018-04-17 15:15:13 +00:00
Baptiste Daroussin
ef403b13f3 Update to zsh 5.5
Patch broken linux completion so that zcompile can actually compile it
Remove now useless patch for libarchive
2018-04-10 11:45:46 +00:00
Baptiste Daroussin
0231318963 Fix diff -u completion
PR:		222420
Submitted by:	cy
2017-10-02 11:06:33 +00:00
Baptiste Daroussin
b48b7be696 Update to 5.4.2 2017-08-31 09:04:03 +00:00
Baptiste Daroussin
687975d2f0 Due to some timestamp issue zsh may need autoheader at build time
Let's renegerate the autotools part to be safe

Reported by:	jrm
2017-08-10 12:59:04 +00:00
Baptiste Daroussin
c377bbb4c7 Update to 5.4.1 2017-08-10 11:20:33 +00:00
Dag-Erling Smørgrav
3d7c7f2ece Fix bug in kldload completion (also reported upstream).
Approved by:	bapt@
2017-03-30 12:41:08 +00:00
Baptiste Daroussin
f93e01db48 Update to 5.3.1 2016-12-22 13:12:30 +00:00
Baptiste Daroussin
d464887e15 Fix typo in chflags completion
Reported by:	adamw
2016-12-18 12:13:31 +00:00
Baptiste Daroussin
b050d07493 Update ZSH to 5.3
Among the usual bugs fixes and completion updates, FreeBSD users will now
benefit new completion functions for:
- cu
- gstat
- jot
- rcctl
- sysrc
2016-12-14 07:39:46 +00:00
Baptiste Daroussin
f121cb0019 Fix make and gmake completion
Submitted by:	Daniel Shahaf (on zsh mailing list)
Reported by:	Guilherme Salazar (on zsh mailing list)
2016-10-16 18:46:14 +00:00
Baptiste Daroussin
87a41e614d Grab back maintainership on zsh
Approved by:	adamw
2016-10-16 18:25:42 +00:00
Adam Weinberger
e45ae6d6db Sort a few OPTIONS helpers 2016-07-29 15:06:20 +00:00
Adam Weinberger
5dd5b56d7e Reorganize, simplify, and improve the Makefile.
A couple options changes:
The MAILDIR and SECURE_FREE knobs were both removed and switched to
always-on. Having maildir support does not preclude mbox support, so
there's no reason not to include it for everybody. The secure-free
run-time free() safety check is good practice and is a mandatory default
on a number of other OS's, so now it's enabled for all zsh here as well.

PORTREVISION bump for the above changes.

The rest of the changes are simplifications, and reorganizing things to
be more legible. An EXTRA_PATCHES that was being applied unconditionally
was converted to a normal files/patch-, and I added in some comments
on things I got confused by.

While here, I also rewrote the descr to better describe what Zsh is
in relation to other shells. I also removed

	"See also zshcompsys(1) manpage. :)"

Not even a smiley face can undo the pain of trying to read zshcompsys(1).
2016-07-27 07:39:21 +00:00
Adam Weinberger
0a92ab1e3e Change the ETCDIR description to say "${PREFIX}" instead of
showing the actual prefix. Otherwise poudriere says it will
read from /nonexistent/etc.
2016-06-24 14:27:31 +00:00
Adam Weinberger
e260b1b6ee Switch zsh back to looking for system-wide files under ${PREFIX}/etc,
rather than /etc. Add an option, ETCDIR, to switch it back to /etc.
Also includes a couple whitespace cleanups. PORTREVISION bump, and a
note in UPDATING.

PR:		201866
2016-06-24 14:13:28 +00:00
Dmitry Marakasov
70e2eaabae - No need to specify master site subdirectory when it's the same as default
Approved by:	portmgr blanket
2016-05-18 14:11:33 +00:00
Adam Weinberger
26866f517f Clean up Makefile and regenerate patches.
Reorganize Makefile for clarity, and add a few comments.
While here, regenerate the patches with makepatch.

No functional changes.
2016-04-06 04:36:39 +00:00
Mathieu Arnold
597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00
Adam Weinberger
69d974e963 Fix ncurses detection properly. Now zsh builds and packages properly with
base and ports ncurses, static or non-static.

Many thanks to bapt for showing me the magic trick here!
2015-12-24 17:50:56 +00:00
Adam Weinberger
625ae90c22 Partially revert r403755. It can't build the curses module against ncurses from
ports. It probably can, but configure is too smart to figure that out.

I have no confidence that linking against curses from ports results in a properly
working zshell. So, for now, back out the change. It will build a shared lib zsh
against ncurses from ports, but breaks statically-linked zsh's. Mark the port
as IGNORE if we're using ncurses from ports and building a static zsh.

Also, remove a regression-test target that isn't useful anymore (thanks to bapt
for the reminder about this).

I am not enthused about this change. It doesn't really "fix" the below PR, so
much as shoot ourselves in the other foot instead.

PR:	205500
2015-12-23 22:56:46 +00:00
Adam Weinberger
ab9cfed5a5 Fix static build against devel/ncurses by correcting how zsh tries to link
against the terminal libraries. No PORTREVISION bump as this shouldn't really
change the generated packages.

PR:		181720
Submitted by:	wulf@mail.mipt.ru

While here, fix a spacing nit and wrap compound commands in parens.
2015-12-15 04:02:17 +00:00
Adam Weinberger
4e4acda59d I'll take this port. 2015-12-08 15:05:03 +00:00
Baptiste Daroussin
79c5812c13 Make zsh read again conf in /etc
Drop maintainership
2015-12-08 13:40:36 +00:00
Baptiste Daroussin
905a009ac4 We do not have yet the need for that new timestamp :) 2015-12-05 00:12:31 +00:00
Baptiste Daroussin
8642c28c93 Update to zsh 5.2
While here:
- ensure zsh looks ${PREFIX}/etc for zshrc [1]
- hook the testsuite to our test framework

PR:		201866
Submitted by:	Georgy <delycid@gmail.com>
2015-12-04 23:27:23 +00:00
Dmitry Marakasov
43eff73c3e - Switch to options helpers
Approved by:	portmgr blanket
2015-09-23 22:59:01 +00:00
Baptiste Daroussin
a5cbb74d50 Update to 5.1.1 2015-09-12 00:11:06 +00:00
Baptiste Daroussin
7c76f50b76 Update to 5.1
Switch the default mirror to zsh.org until the distfiles appears on sourceforge
2015-08-30 20:01:07 +00:00
Dmitry Marakasov
cc1adc655e - Fix shebangs
Approved by:	portmgr blanket
MFH:		2015Q3 (blanket)
2015-07-31 14:35:39 +00:00
Baptiste Daroussin
a90e315803 Move the SF mirrors first again 2015-06-16 11:03:49 +00:00
Baptiste Daroussin
641184f77f Fix du(1) completion
PR:		200768
Obtained from:	ZSH upstream
2015-06-15 12:36:13 +00:00