View | Details | Raw Unified | Return to bug 166093
Collapse All | Expand All

(-)Makefile (-7 / +1 lines)
Lines 7-13 Link Here
7
7
8
PORTNAME=	fish
8
PORTNAME=	fish
9
PORTVERSION=	1.23.1
9
PORTVERSION=	1.23.1
10
PORTREVISION=	7
10
PORTREVISION=	8
11
CATEGORIES=	shells
11
CATEGORIES=	shells
12
MASTER_SITES=	SF
12
MASTER_SITES=	SF
13
13
Lines 78-87 Link Here
78
		${ECHO_CMD} '${PREFIX}/bin/${PORTNAME}' >> /etc/shells; \
78
		${ECHO_CMD} '${PREFIX}/bin/${PORTNAME}' >> /etc/shells; \
79
	fi
79
	fi
80
80
81
post-deinstall:
82
	${CP} /etc/shells /etc/shells.bak
83
	${GREP} -v '${PREFIX}/bin/${PORTNAME}' /etc/shells.bak \
84
		>> /etc/shells
85
	${RM} -f /etc/shells.bak
86
87
.include <bsd.port.post.mk>
81
.include <bsd.port.post.mk>
(-)pkg-deinstall (+7 lines)
Added Link Here
1
#!/bin/sh
2
3
if [ "$2" = "DEINSTALL" ]; then
4
	/bin/cp /etc/shells /etc/shells.bak
5
	/usr/bin/grep -v '/usr/local/bin/fish' /etc/shells.bak >> /etc/shells
6
	/bin/rm -f /etc/shells.bak
7
fi

Return to bug 166093