Commit graph

52 commits

Author SHA1 Message Date
rillig
c7ff05f63e all: replace SUBST_SED with the simpler SUBST_VARS
pkglint -Wall -r --only "substitution command" -F

With manual review and indentation fixes since pkglint doesn't get that
part correct in every case.
2019-05-23 19:22:54 +00:00
jperkin
5393242c73 *: Move SUBST_STAGE from post-patch to pre-configure
Performing substitutions during post-patch breaks tools such as mkpatches,
making it very difficult to regenerate correct patches after making changes,
and often leading to substituted string replacements being committed.
2018-07-04 13:40:07 +00:00
rillig
c77d3c5335 pkgtools/*: Realign variables in Makefiles
Mainly done by pkglint, manually reviewed and improved in some few cases.
2018-01-27 19:07:46 +00:00
rillig
b381c6e2f3 Sort PLIST files.
Unsorted entries in PLIST files have generated a pkglint warning for at
least 12 years. Somewhat more recently, pkglint has learned to sort
PLIST files automatically. Since pkglint 5.4.23, the sorting is only
done in obvious, simple cases. These have been applied by running:

  pkglint -Cnone,PLIST -Wnone,plist-sort -r -F
2018-01-01 22:29:15 +00:00
jlam
6fcb2ed197 pkgtools/libkver: Install manpages into ${PKGMANDIR}.
This project uses BSD makefiles to build and install the binaries
and manpages.  Add "MANDIR=..." to the flags passed to
"make install" so that the manpages are installed in the correct
location under ${PKGMANDIR}.
2017-08-19 00:22:00 +00:00
seb
a95c896613 whitespace fix PR pkg/38651 2016-03-20 19:15:33 +00:00
sborrill
c8749a295d Remove duplicate entries from previous commit. 2015-06-17 08:20:21 +00:00
wiz
cda18437be Remove pkgviews: don't set PKG_INSTALLATION_TYPES in Makefiles. 2014-10-09 14:05:50 +00:00
obache
34637a70ac Just define PKGNAME and use it. 2014-03-03 03:30:52 +00:00
apb
0bf76220c3 Update the valid_MACHINE_ARCH list from NetSBD src/build.sh version 1.272.
Bump kver version to 0.7.2.
2013-08-23 08:59:51 +00:00
wiz
b6d125ee08 Use Mt for email addresses. 2013-07-20 21:50:52 +00:00
apb
28e76f84a5 * commit PLIST changes that I forgot to commit earlier;
* use size_t, not int, for a length passed to sysctl(2);
* bump version to 0.7.1.
2013-01-04 06:00:48 +00:00
wiz
5bd3827a2e Sort options and their descriptions. 2012-10-31 22:57:40 +00:00
wiz
a7010f6927 Fix xref, sort sections, use more markup, remove superfluous Pp. 2012-10-31 22:55:40 +00:00
apb
60282c0076 Markup to prevent "e.g." from being misinterpreted as the end of a sentence.
(Not bumping the version number for this.)
2012-10-31 14:47:08 +00:00
apb
30ef57e838 Add the ability for libkver to override all four of ostype, osrelease,
machine, and machine_arch.  Add a helper script to simplify use of
libkver.  Set VERSION=0.7.

An earlier version of this change was reviewed by seb@NetBSD.org.
2012-10-31 14:41:55 +00:00
asau
5c2dd9e784 "user-destdir" is default these days 2012-09-11 23:19:33 +00:00
joerg
295a773795 Ensure everything is prototypes correctly. 2011-11-22 18:13:09 +00:00
joerg
4beb0d6f99 DESTDIR support. 2009-02-10 00:13:34 +00:00
tron
c549bb8328 Set "USE_BSD_MAKEFILE" to indicate that this package uses a BSD-style
makefile. This should fix HTML manual page issue under NetBSD-current.
Problem reported by Cesar Catrian Carreno on "pkgsrc-users" mailing list.
2008-10-01 20:16:50 +00:00
jlam
841dfa0e7a Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
2008-04-12 22:42:57 +00:00
joerg
1b8a4975f6 Thinking again, include bsd.prefs.mk *first* and override CHECK_PERMS
afterwards, the user might have set it.
2007-07-26 12:24:52 +00:00
joerg
2745164118 Skip the permission check for libkver as well to avoid cyclic
dependencies.
2007-07-26 12:24:08 +00:00
joerg
536bb58568 Silence make. If /sbin/sysctl is static or non-existent, ldd would return
an error and make complain rather verbosely. Use || true to hide that
error.
2007-05-18 22:44:32 +00:00
wiz
601583c320 Whitespace cleanup, courtesy of pkglint.
Patch provided by Sergey Svishchev in private mail.
2007-02-22 19:26:05 +00:00
taca
4368f45ac6 Fix compile problem on gcc-4; added simply includes of <stdio.h>. 2006-08-11 14:44:29 +00:00
seb
daef8f3622 placate pkglint 2006-05-31 22:10:30 +00:00
seb
0271060d55 If I should be steward of one be it this one! 2006-05-31 22:04:55 +00:00
cube
97cdc85401 Adapt sysctl prototype for -current. The boundary is chosen as 3.99.16.
The broken area is -current between Feb 24th 2006 and Mar 2nd 2006.

Fixes PR#33226 by Cesar Catrian Carreno.
2006-04-09 17:47:46 +00:00
jlam
daad0f3d6c Modify the pkginstall framework so that it manages all aspects of
INSTALL/DEINSTALL script creation within pkgsrc.

If an INSTALL or DEINSTALL script is found in the package directory,
it is automatically used as a template for the pkginstall-generated
scripts.  If instead, they should be used simply as the full scripts,
then the package Makefile should set INSTALL_SRC or DEINSTALL_SRC
explicitly, e.g.:

	INSTALL_SRC=	${PKGDIR}/INSTALL
	DEINSTALL_SRC=	# emtpy

As part of the restructuring of the pkginstall framework internals,
we now *always* generate temporary INSTALL or DEINSTALL scripts.  By
comparing these temporary scripts with minimal INSTALL/DEINSTALL
scripts formed from only the base templates, we determine whether or
not the INSTALL/DEINSTALL scripts are actually needed by the package
(see the generate-install-scripts target in bsd.pkginstall.mk).

In addition, more variables in the framework have been made private.
The *_EXTRA_TMPL variables have been renamed to *_TEMPLATE, which are
more sensible names given the very few exported variables in this
framework.  The only public variables relating to the templates are:

	INSTALL_SRC		INSTALL_TEMPLATE
	DEINSTALL_SRC		DEINSTALL_TEMPLATE
				HEADER_TEMPLATE

The packages in pkgsrc have been modified to reflect the changes in
the pkginstall framework.
2006-03-14 01:14:26 +00:00
jlam
9c8b5ede43 Point MAINTAINER to pkgsrc-users@NetBSD.org in the case where no
developer is officially maintaining the package.

The rationale for changing this from "tech-pkg" to "pkgsrc-users" is
that it implies that any user can try to maintain the package (by
submitting patches to the mailing list).  Since the folks most likely
to care about the package are the folks that want to use it or are
already using it, this would leverage the energy of users who aren't
developers.
2006-03-04 21:28:51 +00:00
jlam
dc9594e09d Remove USE_PKGINSTALL from pkgsrc now that mk/install/pkginstall.mk
automatically detects whether we want the pkginstall machinery to be
used by the package Makefile.
2005-12-29 06:21:30 +00:00
seb
37d945e229 Lower expectations, both others' and mine: relinquish stewardship 2005-12-27 13:54:57 +00:00
seb
de47c7958b Rename LIBKVER_STANDALONE_DIR to LIBKVER_STANDALONE_PREFIX. 2005-11-14 08:58:51 +00:00
seb
35e292fda0 Add target 'standalone-install': install libkver in ${LIBKVER_STANDALONE_DIR},
defaults to /libkver, and register it there.

This is a convenient one-stop target to use libkver in a sandboxed bulk-build.
(hint for Julio ;)
2005-11-07 22:30:13 +00:00
rillig
5946936ffc Replaced "# defined" with "yes" in Makefile variables like GNU_CONFIGURE,
NO_BUILD, USE_LIBTOOL.
2005-09-28 20:52:18 +00:00
tv
f816d81489 Remove USE_BUILDLINK3 and NO_BUILDLINK; these are no longer used. 2005-04-11 21:44:48 +00:00
seb
df3ade20c1 Update to version 0.6.
Support NetBSD release like X.Y.Z_LABEL eg 1.6.2_STABLE.
2005-03-30 06:41:01 +00:00
cube
bfcdc04fd8 Add support for versions such as 2.0_STABLE.
XXX:  actually, it would be nice if pkg_add didn't complain when adding a
      2.0 package to a 2.0_STABLE system.
2005-01-14 17:15:21 +00:00
tv
049d18c583 Don't "cp -p" for *source* files. Builds are usually done as an unprivileged
user, so it's not nice to try to use an option that will try to chown if
the repository isn't owned by the builder.

(Some OS's do in fact cause an error when the chown in "cp -p" fails.)
2005-01-06 05:32:29 +00:00
cube
28792806d7 o Allow use if sysctl for MIBs shorter or longer than 2
o Instead of returning an error, pass the control to the actual call. This
  avoids a failure in make because of broken uname() when libkver is used.

OK'd by seb@.
2004-07-06 09:45:38 +00:00
grant
010b8db118 fix a sentence, fix a typo, s/netbsd.org/NetBSD.org/ 2004-04-24 10:53:03 +00:00
jmmv
6ae89c5638 Convert to bl3 and allow pkgviews installation. 2004-01-19 13:38:28 +00:00
seb
b5c6b87e18 Replace ad hoc creation of installation directories in pre-install target
by INSTALLATION_DIRS framework.

While here also create {man,cat}pages directories.
2003-12-23 19:48:31 +00:00
seb
030685f07e Update to version 0.4.
Libkver is now run-time configurable, see installed kver(3), it now
installs in LOCALBASE and uses install/deinstall scripts to replace/restore
/sbin/sysctl if needed.
2003-12-13 17:45:59 +00:00
seb
8b72b13fb8 Update to version 0.3.
Add support for NetBSD 1.6.2.

XXX The "release date" is fiction.
2003-10-27 20:31:42 +00:00
seb
34700d01e6 Update to version 0.2.
Fix a mostly harmless bug: a utsname.machine string was added at the
end of utsname.version string.
2003-09-30 19:13:30 +00:00
martti
8cee801716 COMMENT should start with a capital letter. 2003-07-21 17:10:16 +00:00
seb
06c5a4ac05 Add support for picking up KVER_OSRELEASE in "/etc/mk.conf": both
when used as standalone sources and -as MAKECONF is set to /dev/null in
MAKE_ENV by bsd.pkg.mk- as package sources.
2003-07-20 15:37:46 +00:00
seb
3acd4bb717 Use english not french! 2003-07-20 13:56:25 +00:00