From owner-freebsd-ports@FreeBSD.ORG Thu Jul 17 20:21:19 2014 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 32F5076B; Thu, 17 Jul 2014 20:21:19 +0000 (UTC) Received: from mail-oa0-x22b.google.com (mail-oa0-x22b.google.com [IPv6:2607:f8b0:4003:c02::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id BBF712DC9; Thu, 17 Jul 2014 20:21:18 +0000 (UTC) Received: by mail-oa0-f43.google.com with SMTP id i7so1520420oag.16 for ; Thu, 17 Jul 2014 13:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=W3kOZEud/pQOo9XH929ZZQ8U7OHPPEG/3oRKJdyUCSI=; b=N7yk+FYAjCXSeDFdAvs02qt9hUEaIm4j47HWqjVkNz5LmwSBnDceynv3rMclxONXNZ 0WyHQNZvibkP4rxOdNC+kOXk9mUNRR5Yr6UZv3eiKqrm//HNXEVojgGt1+JjIIgsKTwo FkNxFx68rYMRaGEUtus3P4GH818WZR/5USM1NXpMwz3/X65kwtddr6ZvHPamBsEHT290 s73m++llTuvptKsCXS+V+gTrctZ3LaP8yKZGBzYtllaIY5ic3w4SC07K4kYbE+XMQ3K9 7T8Z2bpJH3TOnbfSXWSX9qCP7nLZA7LPS27TYN1QgDcW0OT/jfRsmaoQRn0e6RosHdti Ma0A== MIME-Version: 1.0 X-Received: by 10.60.73.129 with SMTP id l1mr49621129oev.2.1405628477962; Thu, 17 Jul 2014 13:21:17 -0700 (PDT) Received: by 10.76.170.39 with HTTP; Thu, 17 Jul 2014 13:21:17 -0700 (PDT) In-Reply-To: <53C82EC4.8060304@gmail.com> References: <53C82EC4.8060304@gmail.com> Date: Thu, 17 Jul 2014 22:21:17 +0200 Message-ID: Subject: Re: HOWTO articles for migrating from Linux to FreeBSD, especially for pkg? From: Andreas Nilsson To: Navdeep Parhar Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18 Cc: Craig Rodrigues , Adrian Chadd , freebsd-doc@freebsd.org, Alberto Mijares , freebsd-current Current , ports X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jul 2014 20:21:19 -0000 On Thu, Jul 17, 2014 at 10:15 PM, Navdeep Parhar wrote: > On 07/17/14 13:12, Adrian Chadd wrote: > > On 17 July 2014 13:03, Alberto Mijares wrote: > >> On Thu, Jul 17, 2014 at 2:58 PM, Adrian Chadd > wrote: > >>> Hi! > >>> > >>> 3) The binary packages need to work out of the box > >>> 4) .. which means, when you do things like pkg install apache, it > >>> can't just be installed and not be enabled, because that's a bit of a > >>> problem; > >> > >> > >> No. Please NEVER do that! The user must be able to edit the files and > >> start the service by himself. > > > > Cool, so what's the single line command needed to type in to start a > > given package service? > > Aren't sysrc(8) and service(8) for this kind of stuff? > They sure are. Well, pkg install $service ; sysrc ${service}_enable="YES" would do. Although some services have different names than the packge, which is sort of annoying. I wouldn't mind though if pkg via dialog or some such mechanism asked if wanted it enabled. Or via pkg-message told me howto enable it. /A