diff --git a/sysutils/firstboot-pkgs/Makefile b/sysutils/firstboot-pkgs/Makefile index a23841973c86..6bb9c3383ffe 100644 --- a/sysutils/firstboot-pkgs/Makefile +++ b/sysutils/firstboot-pkgs/Makefile @@ -1,18 +1,18 @@ PORTNAME= firstboot-pkgs -PORTVERSION= 1.6 +PORTVERSION= 1.7 CATEGORIES= sysutils MASTER_SITES= # none DISTFILES= # none EXTRACT_ONLY= # none MAINTAINER= cperciva@FreeBSD.org COMMENT= Install packages when the system first boots NO_WRKSUBDIR= yes NO_BUILD= yes NO_INSTALL= yes NO_ARCH= yes USE_RC_SUBR= firstboot_pkgs .include diff --git a/sysutils/firstboot-pkgs/files/firstboot_pkgs.in b/sysutils/firstboot-pkgs/files/firstboot_pkgs.in index 340ce6d740bb..b743575d04fa 100644 --- a/sysutils/firstboot-pkgs/files/firstboot_pkgs.in +++ b/sysutils/firstboot-pkgs/files/firstboot_pkgs.in @@ -1,53 +1,53 @@ #!/bin/sh # KEYWORD: firstboot # PROVIDE: firstboot_pkgs # REQUIRE: NETWORKING # BEFORE: LOGIN # Add the following lines to /etc/rc.conf.local or /etc/rc.conf (in the disk # image, since this only runs on the first boot) to enable this: # # firstboot_pkgs_enable="YES" # # and place a list of packages in firstboot_pkgs_list, e.g., # -# firstboot_pkgs_list="apache22 php5 mysql56-server" +# firstboot_pkgs_list="apache24 php83 mysql80-server" . /etc/rc.subr : ${firstboot_pkgs_enable:="NO"} name="firstboot_pkgs" rcvar=firstboot_pkgs_enable start_cmd="firstboot_pkgs_run" stop_cmd=":" firstboot_pkgs_run() { # Count rc.d scripts nscriptso=`ls /usr/local/etc/rc.d | wc -l` # Bootstrap and update pkg to ensure synchronization with the repository env ASSUME_ALWAYS_YES=YES pkg bootstrap -f | cat env ASSUME_ALWAYS_YES=YES pkg update -f | cat # Install requested packages, if any for package in ${firstboot_pkgs_list}; do env ASSUME_ALWAYS_YES=YES pkg install ${package}