summaryrefslogtreecommitdiff
path: root/share/examples
Commit message (Collapse)AuthorAgeFilesLines
* MFC: r314875, r331963Jung-uk Kim2018-04-061-2/+3
| | | | | | | Catch up with Clang 6.0. Notes: svn path=/stable/11/; revision=332125
* Revert r330897:Eitan Adler2018-03-293-8/+1
| | | | | | | | | | | | | | | | | | | | This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code. Revert with prejudice. This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes. Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes. Requested by: gjb (re) Notes: svn path=/stable/11/; revision=331722
* MFC 321881Sevan Janiyan2018-03-251-3/+3
| | | | | | | | | | | For the udp-client example, instruct user to add an entry for a udp based service. For tcp-client & udp-client, use the same port in configuration snippet as used in the comment prior to remove any ambiguity on the port number which needs to be specified. Notes: svn path=/stable/11/; revision=331514
* MFC r328428:Eitan Adler2018-03-172-7/+14
| | | | | | | | | example cdev: use make_dev_s Make use of make_dev_s in the example cdev. While here, fix warnings. Notes: svn path=/stable/11/; revision=331085
* Partial merge of the SPDX changesEitan Adler2018-03-143-1/+8
| | | | | | | | | | These changes are incomplete but are making it difficult to determine what other changes can/should be merged. No objections from: pfg Notes: svn path=/stable/11/; revision=330897
* MFC: r328695,r328720,r328784,r328795 share/examples/bhyve/vmrun.sh additionsRodney W. Grimes2018-02-121-27/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | and cleanups r328695: Add option '-n' network device emulation type which has a default of virtio-net PR: 225558 Submitted by: Johannes Lundberg <johalun0@gmail.com> r328720: Add -n <network device emulation type> to usage synopsis forgotten in r328695. Fix long lines in usage. Consistently use "default:" rather than "default is" r328784: Clean up long lines. r328795: Fold constants and unify vnc variable names. Approved by: grehan (mentor) PR: 225558 Notes: svn path=/stable/11/; revision=329179
* MFC: r316746 Add UEFI support to vmrun.shRodney W. Grimes2018-02-121-9/+65
| | | | | | | | | | | | | | | | | | | Adds: -E: Use UEFI mode -f: path to UEFI firmware image (default: path to uefi-edk2-bhyve package) -F: UEFI framebuffer size (default: w=1024,h=768) -L: IP to listen for VNC connections on (default: 127.0.0.1) -P: Port to listen for VNC connections on (default: 5900) -T: Enable tablnet device (for VNC) -v: Wait for VNC client before booting VM Submitted by: Shawn Webb <shawn.webb@hardenedbsd.org> Approved by: grehan(mentor),allanjude(original committer) Relnotes: yes Differential Revision: https://reviews.freebsd.org/D10378 Notes: svn path=/stable/11/; revision=329178
* MFC r325834,r325997,326502: Move sys/boot to stand/Kyle Evans2018-02-122-2/+2
| | | | | | | | | | | | | | | | | | | This is effectively a direct commit to stable/11, due to differences between stable/11 and head. Changes to DTS in sys/boot/fdt/dts were often accompanied by kernel changes. Many of these were also risc-v updates that likely had many more dependencies to MFC. Because of this, sys/boot/fdt/dts remains as-is while everything else in sys/boot relocates to stand/. r325834: Move sys/boot to stand. Fix all references to new location r325997: Remove empty directories. r326502: Document the sys/boot -> stand move in hier.7 and the top-level README. Notes: svn path=/stable/11/; revision=329145
* MFC r326140: vmrun.sh: add -A option for AHCI emulation of disk devicesAndriy Gapon2018-01-151-3/+8
| | | | Notes: svn path=/stable/11/; revision=327997
* MFC r320441,r320442:Enji Cooper2017-07-283-12/+10
| | | | | | | | | | | | | | | | | | | | | | | | r320441: share/examples/tests/Makefile: clean up example snippets/documentation - TESTSDIR doesn't need to be specified after r289158. - Including bsd.own.mk isn't required since no MK_<foo> knobs are being manipulated. - TESTS_SUBDIRS should be written out in an append format, one entry per line, to provide a better, more conflict resistant example. r320442: share/examples/tests/{atf,plain}/Makefile: tweak example Makefile snippets - Including bsd.own.mk isn't required since no MK_<foo> knobs are being manipulated. - Update documentation to note that ${FILES} is installed via bsd.progs.mk, not bsd.prog.mk. Notes: svn path=/stable/11/; revision=321647
* MFC r320443,r320444:Enji Cooper2017-07-286-0/+399
| | | | | | | | | | | | | | | | | | r320443: Add kyua TAP test integration examples The examples are patterned loosely after the ATF examples, similar to the plain test examples. r320444: Commit the corresponding mtree file change for the TAP test examples MFC with: r320443 Notes: svn path=/stable/11/; revision=321645
* MFC: r314694Rodney W. Grimes2017-04-221-1/+9
| | | | | | | | | | | Make vmrun.sh passthrough -u and -w to bhybe PR: 214273 Submitted by: Martin Birgmeier <la5lb...@aon.at> Approved by: grehan (mentor) Notes: svn path=/stable/11/; revision=317303
* MFC r308615 [brd]:Devin Teske2016-12-132-24/+24
| | | | | | | | | | Attempt to make the parts that people are supposed to change stand out more by capitalizing them. Approved by: me Notes: svn path=/stable/11/; revision=310011
* MFC r308148, r308150, r308156:Glen Barber2016-11-031-1/+1
| | | | | | | | | | | | | | | | r308148: Fix packaging calendar(1) files. r308150: Fix packaging /usr/share/examples/etc. r308156: Fix packaging /usr/lib{,32}/libgcc_eh{,_p}.a. Sponsored by: The FreeBSD Foundation Notes: svn path=/stable/11/; revision=308238
* Install/Connect ypldap.conf(5) on examples.Marcelo Araujo2016-06-061-2/+4
| | | | Notes: svn path=/head/; revision=301479
* Update share/examples/* to properly install /usr/share/examples.Glen Barber2016-05-1035-2/+84
| | | | | | | | | | | | | As result of this, a new examples package is now created. Note, this is only effective with 'SHARED=copies' (the default), as the 'SHARED=symlinks' mechanism will create a symlink to the source tree version of the file(s). Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=299293
* Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedEnji Cooper2016-05-046-29/+45
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | after r298107 Summary of changes: - Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup) Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info. MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=299094
* share: minor spelling fixes.Pedro F. Giffuni2016-05-012-4/+4
| | | | | | | | | Mostly comments but these tend to be user-visible. MFC after: 2 weeks Notes: svn path=/head/; revision=298882
* Fix including Kyuafile in packaged base system.Glen Barber2016-04-294-4/+8
| | | | | | | | | | | | | | | Fix a related typo while here. Note, this change results in the Kyuafile inclusion in the runtime package, which needs to be fixed, however addresses the PR as far as I can tell in my tests. PR: 209114 Submitted by: ngie Sponsored by: The FreeBSD Foundation Notes: svn path=/head/; revision=298768
* - Add two new subcommands to rc.subr:Lars Engels2016-04-231-1/+1
| | | | | | | | | | | | | "describe" shows an rc script's description "extracommands" shows an rc script's non-standard commands like "reload", "configtest", "keygen", etc - Update the rc(8) manpage and the tcsh(1) completion examples to reflect these changes Approved by: bapt Sponsored by: Essen Linuxhotel Hackathon 2016 Differential Revision: D452 Notes: svn path=/head/; revision=298515
* MFHGlen Barber2016-04-161-2/+2
|\ | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=298092
| * Rework META_TARGETS so that it automatically adds META_DEPS to the targets.Bryan Drewery2016-04-141-2/+2
| | | | | | | | | | | | | | | | | | | | | | This will only be done if the target is defined, so if the target is defined after bsd.sys.mk is included then it needs to manually add ${META_DEPS} still. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=297994
* | MFHGlen Barber2016-03-142-4/+17
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296869
| * META_MODE: Simplify the META_COOKIE handling to use .USE/.USEBEFORE.Bryan Drewery2016-03-111-7/+3
| | | | | | | | | | | | | | | | | | | | Extend it to other cases of meta mode cookies so they get the proper rm cookie behavior when a .meta file detects it needs to rebuild and fails. Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296700
| * DIRDEPS_BUILD: Fix staging of share/sendmail and share/examples.Bryan Drewery2016-03-112-2/+19
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296695
* | MFHGlen Barber2016-03-104-0/+59
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=296625
| * DIRDEPS_BUILD: Connect MK_TESTS.Bryan Drewery2016-03-094-0/+59
| | | | | | | | | | | | | | Sponsored by: EMC / Isilon Storage Division Notes: svn path=/head/; revision=296587
* | MFHGlen Barber2016-02-154-169/+322
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295639
| * Fix missing description for command usageDevin Teske2016-02-132-2/+6
| | | | | | | | | | | | | | | | | | While "jng" or "jib" without arguments told you what each sub-command does, sub-command usage didn't tell you (e.g., "jng bridge" or "jib addm" gave only usage and not description). Notes: svn path=/head/; revision=295587
| * Comments and fix small bugDevin Teske2016-02-122-18/+24
| | | | | | | | | | | | | | | | | | Reduce differences between jib/jng and fix a bug that would prevent additional interfaces from being created if the first of many already existed (counter wasn't incremented before calling only continue). Notes: svn path=/head/; revision=295556
| * Add syntax to disable MAC allocationDevin Teske2016-02-122-22/+24
| | | | | | | | | | | | | | | | | | | | | | | | Adding `!' before an interface name will disable MAC allocation, falling back to driver mechanics. Alternatively adding `=' before an interface name causes the MAC address to be cloned (for ng_bridge(4) back-end only). While here, disable the auto-detection of wlan* since this knocks the host off; requiring the host that defines the jail to explicitly enable this feature by preceding the interface with `='. Notes: svn path=/head/; revision=295554
| * Refactor conversion to hexDevin Teske2016-02-122-26/+14
| | | | | | | | Notes: svn path=/head/; revision=295553
| * Add support for bridging iwn(4) based wlan(4)Devin Teske2016-02-111-4/+25
| | | | | | | | | | | | | | | | | | | | | | Documented in iwn(4), "Only one virtual interface may be configured at any time." However, netgraph with a cloned MAC address is able to communicate over an ng_eiface attached to an ng_bridge linked to the wlan(4) interface. While here, introduce syntax to specify the MAC address is to be cloned if the named interface begins with equals [=]. Notes: svn path=/head/; revision=295548
| * Centralize MAC derivation formulaDevin Teske2016-02-112-144/+175
| | | | | | | | Notes: svn path=/head/; revision=295546
| * Add example VIMAGE config required by vnet jailsDevin Teske2016-02-112-0/+67
| | | | | | | | Notes: svn path=/head/; revision=295542
| * Add `stats' command to get ng_bridge(4) statsDevin Teske2016-02-101-0/+34
| | | | | | | | Notes: svn path=/head/; revision=295460
* | MFHGlen Barber2016-02-106-17/+198
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295458
| * Add vnet jail configuration examplesDevin Teske2016-02-104-1/+181
| | | | | | | | Notes: svn path=/head/; revision=295457
| * Bring generated interfaces up alwaysDevin Teske2016-02-092-0/+4
| | | | | | | | Notes: svn path=/head/; revision=295443
| * Change MAC algo to support mixing w/jng interfacesDevin Teske2016-02-091-14/+11
| | | | | | | | Notes: svn path=/head/; revision=295442
| * Fix bpf unhiding example /etc/devfs.rulesDevin Teske2016-02-092-2/+2
| | | | | | | | Notes: svn path=/head/; revision=295441
* | MFHGlen Barber2016-02-092-27/+84
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295423
| * Adjust MAC algo to support interface branchingDevin Teske2016-02-092-22/+61
| | | | | | | | Notes: svn path=/head/; revision=295422
| * Adjust MAC allocation algo to support layeringDevin Teske2016-02-082-3/+13
| | | | | | | | Notes: svn path=/head/; revision=295401
| * Provide additional information on overall purposeDevin Teske2016-02-082-2/+10
| | | | | | | | Notes: svn path=/head/; revision=295400
| * Fix copy/paste error; s/ngX/eXb/Devin Teske2016-02-081-2/+2
| | | | | | | | Notes: svn path=/head/; revision=295399
* | MFHGlen Barber2016-02-082-0/+783
|\| | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295394
| * Add two scripts for vnet jailsDevin Teske2016-02-072-0/+783
| | | | | | | | | | | | | | | | | | One for if_bridge(4) back-end, another for ng_bridge(4) back-end Sponsored by: FIS Global, Inc. Notes: svn path=/head/; revision=295373
* | More 'tests' packaging fixes.Glen Barber2016-02-031-0/+5
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295216
* | First pass to fix the 'tests' packages.Glen Barber2016-02-023-0/+14
| | | | | | | | | | | | | | Sponsored by: The FreeBSD Foundation Notes: svn path=/projects/release-pkg/; revision=295171