#! /usr/bin/perl
# ex:ts=8 sw=4:
-# $OpenBSD: PkgCreate.pm,v 1.173 2021/11/09 12:22:09 espie Exp $
+# $OpenBSD: PkgCreate.pm,v 1.174 2022/01/13 12:21:22 espie Exp $
#
# Copyright (c) 2003-2014 Marc Espie <espie@openbsd.org>
#
}
$state->{wrkobjdir} = $state->defines('WRKOBJDIR');
$state->{fullpkgpath} = $state->{subst}->value('FULLPKGPATH') // '';
+ $state->{no_ts_in_plist} = $state->defines('NO_TS_IN_PLIST');
}
sub parse_userdb
$result->add_digest($self->compute_digest($fname))
unless $state->{bad};
$result->add_size($size);
- $result->add_timestamp($mtime);
+ unless ($state->{no_ts_in_plist}) {
+ $result->add_timestamp($mtime);
+ }
}
} elsif (-d _) {
$state->error("#1 should be a file and not a directory", $fname);
-.\" $OpenBSD: pkg_create.1,v 1.123 2021/11/26 12:14:33 espie Exp $
+.\" $OpenBSD: pkg_create.1,v 1.124 2022/01/13 12:21:22 espie Exp $
.\"
.\" Documentation and design originally from FreeBSD. All the code has
.\" been rewritten since. We keep the documentation's notice:
.\" [jkh] Took John's changes back and made some additional extensions for
.\" better integration with FreeBSD's new ports collection.
.\"
-.Dd $Mdocdate: November 26 2021 $
+.Dd $Mdocdate: January 13 2022 $
.Dt PKG_CREATE 1
.Os
.Sh NAME
.Ar names
have extra meaning, see
.Xr bsd.port.mk 5
+and
+.Xr package 5
for details:
.Pp
.Bl -tag -width FULLPKGPATH -compact
If defined, appended to the description.
.It Cm MAINTAINER
If defined, appended to the description.
+.It Cm NO_TS_IN_PLIST
+If set, disable the
+.Cm @ts
+annotations in the generated package, rely on the normal
+.Xr tar 1
+timestamps instead.
.It Cm USE_GROFF
Set to 1 to have groff format manpages behind the scenes during
package creation.