diff --git a/infrastructure/bin/portcheck b/infrastructure/bin/portcheck index f1b06969762..ef261e817aa 100755 --- a/infrastructure/bin/portcheck +++ b/infrastructure/bin/portcheck @@ -1,6 +1,6 @@ #!/bin/ksh # -# $OpenBSD: portcheck,v 1.104 2016/03/22 21:25:53 naddy Exp $ +# $OpenBSD: portcheck,v 1.105 2016/03/23 16:30:38 zhuk Exp $ # Copyright (c) 2013 Vadim Zhukov # # Permission to use, copy, modify, and distribute this software for any @@ -929,6 +929,8 @@ sub_checks() { # # * Manual (man and info) pages should go under ${PREFIX}/{man,info}, # not under ${PREFIx}/share/{man,info}. +# +# * Manual pages shouldn't be compressed. check_plist() { $debugging && echo "CALLED: check_plist($*)" >&2 @@ -1177,6 +1179,9 @@ check_plist() { share/info/*) wrong_info=true ;; + "@man "*.gz) + err "${portref}compressed $l" + ;; esac done diff --git a/tests/portcheck/t10.sample b/tests/portcheck/t10.sample index 75297395f43..7caeab0011c 100644 --- a/tests/portcheck/t10.sample +++ b/tests/portcheck/t10.sample @@ -1,2 +1,3 @@ +compressed @man man/man1/bar.1.gz info pages should go under ${PREFIX}/info/ rather than under ${PREFIX}/share/info/ manual pages should go under ${PREFIX}/man/ rather than under ${PREFIX}/share/man/ diff --git a/tests/portcheck/t10/pkg/PLIST b/tests/portcheck/t10/pkg/PLIST index 1006f705e4f..4c2f23e485d 100644 --- a/tests/portcheck/t10/pkg/PLIST +++ b/tests/portcheck/t10/pkg/PLIST @@ -1,4 +1,5 @@ -@comment $OpenBSD: PLIST,v 1.1 2014/05/06 11:02:04 zhuk Exp $ +@comment $OpenBSD: PLIST,v 1.2 2016/03/23 16:30:38 zhuk Exp $ +@man man/man1/bar.1.gz share/man/ share/man/man1/ share/man/man1/foo.1