From owner-freebsd-questions@freebsd.org Fri Jul 29 17:35:44 2016 Return-Path: Delivered-To: freebsd-questions@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 EEA86BA89B4 for ; Fri, 29 Jul 2016 17:35:44 +0000 (UTC) (envelope-from andrewjameswood@ymail.com) Received: from nm1-vm5.bullet.mail.ir2.yahoo.com (nm1-vm5.bullet.mail.ir2.yahoo.com [212.82.96.76]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 5B0291825 for ; Fri, 29 Jul 2016 17:35:43 +0000 (UTC) (envelope-from andrewjameswood@ymail.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ymail.com; s=s2048; t=1469813624; bh=jvhYs/nBdgIzX2ckyontPs0b9ZGVtOR+/QeaVKfhVns=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=sf7qQR3iBxDyIs2lMin/pRTq655FQwXl0o8CuVuO6/vAlHepsYlKliJ79XkSMuiV9x1r7AZle7d88+dlc5/VQCoYEiEydvtmKsK1U5GmWO5WMrAg6NRIkCVCA3XmQC38TflLbtEXqmi8SUH7Q++4VAr9wjayd1clasJWfcYTwF5714yoiCYJa7UoMmTBOYuJlyYEysAN46sXg3J3u0NxuKJxPHLgubRfmHLwWgGmCGjRSMtxHqxvIof0UExpoosavkyXzuSwXknpzIXmioUDdR0U6rvl9p0WxyyG37rPX7Kd4OIHedItnpQFKvb99dW8S9qCaFY12cMt543/v89piQ== Received: from [212.82.98.126] by nm1.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jul 2016 17:33:44 -0000 Received: from [46.228.39.80] by tm19.bullet.mail.ir2.yahoo.com with NNFMP; 29 Jul 2016 17:33:44 -0000 Received: from [127.0.0.1] by smtp117.mail.ir2.yahoo.com with NNFMP; 29 Jul 2016 17:33:44 -0000 X-Yahoo-Newman-Id: 12466.69557.bm@smtp117.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: baOy4ocVM1naKpPW0iScAnyxZGGlaV7wCIGKe7VI9QA_UPv LSaI6bXt4HqXd7.jYgFiZt5DcknICSjeXUQBvQVwBgRDUlX_pSSa0gibk6Hr 4YfSkGV1Rpd2C_h_uKgWsGeFJNBl2OYVgcb2XyapHkBY.QNu4lq7bUZmKkbL ppkq4yA_Uk258pY3WixEzNcB5jv9rXbL_vUdgnAXpZf3ipDoM9GnYfBFDbT2 GE0OLOSdEJUgHmJFaQVnQxURtcl4Vd9hAcANyUBTdnYjE1mmuYH_w_w6EBPp lwATI5cxIonUky_nxGhIJ0VbPu8.TI23uveKZLVtNQQJsSnHymzLhTsccaDh 0tIC7WRTELk2QoNil3EyLF5oyVF36TwD5NnK_8RpeXm1Nq5enTtDz7vAeJFn 2.JzV6YkSWv83j2c4b01SqPL1FBT0gg.WTTXnE.Ls3Hrrt.Ov47vAsGmOc2Y CxMM1S28gd1tyZVrJeMlRKlQiyZ9R75msgly89ZYeEzTI2f6.FmWuZ5T4GKX s2D6NGa0Am1w4wXfbfasm7uCjoveQFJkqImeBbBsWRD5k5GYPqb3.9dmu9.q 9H37f3GzHA9ysMU54.g-- X-Yahoo-SMTP: lyMebeuswBAKXlSCZ4_eELrg31ykJBp.BALgvdbr.jksrQi8VqI- Subject: Re: Creating a pkg To: freebsd-questions@freebsd.org References: <981a28ca-09a4-995b-fee3-55d4a6dc5fb3@ymail.com> <889eda92-91ce-ecd0-3426-97b688093102@ymail.com> <4e9ba369-ea20-03d4-f549-17a5bd73e66e@FreeBSD.org> From: Andrew Wood Message-ID: Date: Fri, 29 Jul 2016 18:33:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686; rv:45.0) Gecko/20100101 Icedove/45.1.0 MIME-Version: 1.0 In-Reply-To: <4e9ba369-ea20-03d4-f549-17a5bd73e66e@FreeBSD.org> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2016 17:35:45 -0000 On 28/07/16 22:14, Matthew Seaman wrote: > Note that > pkg(8) will automatically calculate the file checksums so you can leave those bits out of > your manifest What is the syntax for doing this, what would I put in the files {} section where the hash would normally go? > You need to enumerate each file in your package separately. 'dir' > entries will create a directory -- frequently one that is left empty. > You don't need to list every directory needed to install all the files > in the package. They are created automatically when the file is > installed. You only need a dir entry if the directory wouldn't > otherwise be created. Will that directory also be deleted automatically when the package is removed, I dont need to include an rm in a post deinstall script? Thanks Andrew