Linux and UNIX Man Pages

Test Your Knowledge in Computers #825
Difficulty: Medium
The term API seems to appear for the first time in the article of Ira W. Cotton, Data structures and techniques for remote computer graphics, published in 1968.
True or False?
Linux & Unix Commands - Search Man Pages

emvendor(1) [debian man page]

EMVENDOR(1)						User Contributed Perl Documentation					       EMVENDOR(1)

       emvendor - retrieve vendor-specific package configuration strings

	emvendor -V|--vendor VENDOR -p|--package PACKAGE -k|--key KEY
	emvendor -?|-h|--help|--version

	-v|--vendor VENDOR:    the vendor name from dpkg-vendor
	-p|--package PACKAGE:  the package name (usually source)
	-k|--key KEY:	       arbitrary string for the key of the data

       All commands must be specified every time.

       On success, the string is printed and emvendor exits with zero.

       In the case of error, emvendor dies with an empty string on STDERR and exits with a non-zero return value.

       emvendor provides a way for debian/rules to call in a string for a particular package that fits into the rules for that package and
       conforms to the requirements of the vendor.

       It is fairly obvious that specifying each vendor in the debian/rules file of each package is not going to be particularly flexible.

	DEB_VENDOR=$(shell dpkg-vendor --query vendor)
	ifeq (Debian,$(DEB_VENDOR))
	 # Debian build
	 EXCONFARGS=--disable-mono --disable-monodoc
	 # any-vendor build
	 EXCONFARGS=$(shell emvendor --vendor $(DEB_VENDOR) --package avahi --key EXCONFARGS)

       or use the short options:

	EXCONFARGS=$(shell foo-bar -V $(DEB_VENDOR) -p avahi -k EXCONFARGS)

       The values themselves are in a vendor-specific conf file in /etc/emvendor.d/

	$ cat /etc/foo-bar.d/emdebian-crush
	EXCONFARGS=--disable-mono --disable-monodoc --disable-python
	--disable-doxygen-doc --disable-pygtk --disable-python-dbus
	--disable-core-docs --disable-qt3 --disable-qt4 --disable-gobject
	--with-distro debian


       (Note that the value has to be all on one line which is a little awkward - also note that values are not able to include the equals sign
       which could be more of an issue.)

       Packages that need two strings can do so - the key string is entirely arbitrary as long as it fits in the style of a typical ini file.

       Therefore, the key can be matched to the needs of the relevant package.

       "emdebian-buildsupport" provides /etc/emvendor.d/emdebian-crush with all the content for all packages that need such details.

emvendor and dpkg-vendor
       dpkg-vendor supports vendor functionality but emvendor adds an extra hierarchy, organised by Debian source package name. It would be
       possible to include the relevant strings in /etc/dpkg/origins/vendor but each identifier string would need to be unique across all packages
       for each vendor, which is an unrealistic limitation.

perl v5.14.2							    2012-09-26							       EMVENDOR(1)

Check Out this Related Man Page


emgrip-build - build wrapper script for Emdebian Grip SYNOPSIS
emgrip-build [[--debuild]] [[--n] | [--dry-run]] [[--V] | [--vendor]] [[DPKG-OPTIONS]] emgrip-build [[-?] | [-h] | [--help]] DESCRIPTION
emgrip-build is a simple wrapper for dpkg-buildpackage that runs the built package through emgrip. This results in both types of packages existing in the parent directory. -n|--dry-run Only print the commands that would be executed, do not build the package. --debuild Builds the package using debuild instead of using dpkg-buildpackage directly. -V|--vendor DEB_VENDOR support. The default vendor is emdebian-grip. Same effect can also be achieved using the DEB_VENDOR environment variable. If the named vendor cannot be parsed by dpkg-vendor or if the Grip-Build-Option and Vendor-Namevariables are not set for that vendor, emgrip-build exits. DPKG-OPTIONS Any unrecognised options are passed directly to dpkg-buildpackage, there is no need for --. AUTHOR
Emdebian Neil Williams Debian and Emdebian developer. COPYRIGHT
The GNU GENERAL PUBLIC LICENSE Version 3, 29 June 2007.PP This documentation is part of emdebian-grip. emdebian-grip is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see Note In Debian you can find a copy of the GNU General Public Licence in /usr/share/common-licenses/GPL-3 EMDEBIAN-GRIP Release: 2.2.0 Sun 11 Jan 2009 19:55:45 GMT EMGRIP-BUILD(1)

Featured Tech Videos