From owner-freebsd-ports@freebsd.org Wed Jun 7 21:06:59 2017 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 22E1FD7D4F0 for ; Wed, 7 Jun 2017 21:06:59 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (elsa.codelab.cz [94.124.105.4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id DC0A583994 for ; Wed, 7 Jun 2017 21:06:58 +0000 (UTC) (envelope-from 000.fbsd@quip.cz) Received: from elsa.codelab.cz (localhost [127.0.0.1]) by elsa.codelab.cz (Postfix) with ESMTP id 63C8C284A4; Wed, 7 Jun 2017 23:06:50 +0200 (CEST) Received: from illbsd.quip.test (ip-86-49-16-209.net.upcbroadband.cz [86.49.16.209]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by elsa.codelab.cz (Postfix) with ESMTPSA id 8D7BD28492; Wed, 7 Jun 2017 23:06:49 +0200 (CEST) Subject: Re: Naming convention for etc/periodic/*/* files? To: Christian Weisgerber , freebsd-ports@freebsd.org References: From: Miroslav Lachman <000.fbsd@quip.cz> Message-ID: <59386AE9.9040304@quip.cz> Date: Wed, 7 Jun 2017 23:06:49 +0200 User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:42.0) Gecko/20100101 Firefox/42.0 SeaMonkey/2.39 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jun 2017 21:06:59 -0000 Christian Weisgerber wrote on 2017/06/07 22:18: > What is the naming convention for etc/periodic/*/* files installed > by ports? > > Looking over the ports tree, I see that most adhere to the > NNN.*name* pattern also used in the base system, although it's > unclear how the NNN numbers are assigned and the rest of the name > is somewhat flexible. > > The lone exception is sysutils/smartmontools, which installs > etc/periodic/daily/smart. The numeric prefix is for ordering: 000 start as first, 999 last. Similar actions should be run consecutively. For example all daily status checks are numbered 4xx, all daily cleanups are 1xx. So if some port installs periodic for cleanup it should be named 1xx.name too. The "name" is usually the port name, but some ports can install more than one periodic scripts or the name of the port is not so descriptive as some different name. Miroslav Lachman