The program genmac(1) produces a single MAC address. Following shows a typical invocation:
$ genmac --local --unicast --eui48
At runtime, standard C libraries.
To compile, CMake, a C compiler and standard C headers are required. CMake will generate platform specific build files, so platform specific build environment is required. For Unix type of systems like Linux, a make command is enough.
To rebuild the documentations, AsciiDoc and xmlto are required.
On Debian based systems, you can install
linuxdoc-tools contains both the
Installation (from source)
Download and extract the source distribution. This project is using CMake as the build tool. To build and install the project, issue the following commands:
$ mkdir build # $ cd build # $ cmake ../ # $ cmake --build . # $ make install #
|Create an out-of-source build directory|
|Change the current working directory to the new directory|
|Generate the platform specific build files (the ../ is the path to the extracted source; it does not have to be the parent directory as in the example above)|
|Build the project|
|Install the binaries and documentation|
By default, the binaries are installed in /usr/local/bin and the manual is installed in /usr/local/man/man1.
In order to install in some other prefix than /usr/local,
CMAKE_INSTALL_PREFIX cache variable in step 3 like so:
cmake -DCMAKE_INSTALL_PREFIX=/usr ../.
The bin and man paths under the installation prefix can also be changed
MAN1DIR cache variables.
Their value must be relative to the installation prefix.
During the installation (step 5),
a staged installation can be achieved by defining the
DESTDIR environment variable.
make install DESTDIR=/tmp/package-genmac.
For more details, read the CMake manuals.
Original author and current maintainer is Mikko Värri (email@example.com).
genmac is Free Software, licensed under GNU General Public License
(GPL), version 3 or later. See
LICENSE.txt file for details.