X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; q=dns; s=default; b=uNLJ7U2ymsf/qZUVEjMQTbDzH6e+b aFKvKXBJXxrqlgugFRYcxtVSGBpA+i6+dF7tpkADo76Z2Z+hPXAwHB4vGVUACnej SrQ03hncGcdrYbzDLD9Z4EyRLf1g1//Ubqse8K9r8RE7zE1pPp6R9AiT3wHUDOuf jfqywcabXF+FK8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id:references :in-reply-to:content-type:content-id:content-transfer-encoding :mime-version; s=default; bh=M6HOQAMshTLPXm73Ys7PXvZbGlA=; b=TjG DAjrbWwW5xAbqmif8qGh0iIobgJEWVb7NT1/1Guw5izEIorcZp3NYtqqAhGoDgES fg87953k2bUMN38VSwf8HB0OjUu0oJ0LqXJd7GNAYW9q6DT1wKmlq+oTuHXrA0xV kJ1y2FAfWdHJwwf04rw4ciMY7wUQOh0UKfmZBbAE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,MIME_BASE64_BLANKS,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2 spammy=schulman DOT andrew AT epa DOT gov, schulmanandrewepagov, H*i:sk:g6clcc9, $package.sh X-HELO: SNT004-OMC1S42.hotmail.com From: Rui Pedro Caldeira To: "cygwin AT cygwin DOT com" Subject: Re: Manual installation of cygport packages Date: Thu, 16 Mar 2017 18:06:35 +0000 Message-ID: References: In-Reply-To: authentication-results: cygwin.com; dkim=none (message not signed) header.d=none;cygwin.com; dmarc=none action=none header.from=netcabo.pt; x-incomingtopheadermarker: OriginalChecksum:51BDA4C02C4B9E21204D09EC218B32B3F77E43CB737120DCD839878BB127ACB8;UpperCasedChecksum:810C3F51ACA8E9DDE1DF4B1E4A4EA4DF36143A56154D911A182E4DB3AB3CB9F5;SizeAsReceived:8162;Count:39 x-ms-exchange-messagesentrepresentingtype: 1 x-microsoft-exchange-diagnostics: 1;DB5EUR01HT217;5:bg2m+rRo0eX8+yRIE5VrzMikcVqhg0/YEBJ2JzaSsGMvIUiAD4VE77bEqh28A1iHPviOu/YofhR7UALjFNV/3wBKz6k+xvG2P0/ZCf1yqLTfHbacs756qXn9lS5QxVA8ik05XcXdSLciWrflmVkySw==;24:nnsDZx/bhzTiQVA7v3Jwv4C7s4rlgwYgCN6qnc/Im3FzAyyrBGOUADiLfO3/RZu5CGKZrRY5S+Hmhhiz91PNzazi8RkthJsS1suRe4ziFlw=;7:ENSewjrGOPL2uDuvp32O6qt6q+xOAUWlpkWV4sIWqqMjqeqsK04Vx3NmfRvHNfbiKbgIQ50tV0zr5yQS+GlTVugGvVnA9fr6Q5AlTWp0iYXP3Y98SXNZF3UEEn3C3r9rZPWwwEZU9EzPc6bUWAxkfa2nXQJ5QuyaEVQBWu2vA1+VZBITpoNNncvZT+4/XoYo98w7rGOTSLiCsyR9CPUmFUxGRCTMCPAx4KauOh5DMtYusXE5g80LKne3uyPh2bezCbM9H6JhzVUHdZVMZxPWVlz4ODpGFU3o7iXGzy3nzz0XZcIGqZYjwzL7eOtzZutI x-incomingheadercount: 39 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(10019020)(98900017);DIR:OUT;SFP:1102;SCL:1;SRVR:DB5EUR01HT217;H:AMSPR07MB421.eurprd07.prod.outlook.com;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: 4bab3d4d-1e7a-4f6d-1cb9-08d46c972ec3 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(1601125254)(1603101448)(1701031045);SRVR:DB5EUR01HT217; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(432015087)(444000031);SRVR:DB5EUR01HT217;BCL:0;PCL:0;RULEID:;SRVR:DB5EUR01HT217; x-forefront-prvs: 024847EE92 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="utf-8" Content-ID: MIME-Version: 1.0 X-OriginatorOrg: outlook.com X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2017 18:06:35.5079 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5EUR01HT217 X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id v2H5K6x2032546 Thank you very much Andrew! It was very helpful. Thank you for all your help :) Best regards, Rui On Thu, Mar 16, 2017 at 3:41 PM, Andrew Schulman wrote: >> >> > Hello all, I'm new to this and I successfully build a package with >> >> > cygport. My problem is that, I would like to install it in order to >> >> > test if the package was successfully built. Is there anyway to do >> >> > that? >> >> >> >> https://cygwin.com/package-server.html >> > >> > I usually take the simpler approach of just unpacking the package archive >> > into the root filesystem: >> > >> > tar -C/ -Jxf $package-$version.tar.xz >> > >> > This doesn't run pre-remove or post-install scripts, but it puts the files >> > in place so you can test them. >> >> @Andrew: Is there a way to run the scripts manually? > > Sure, you can run them manually. They're unpacked into > /etc/preremove/$package.sh and /etc/postinstall/$package.sh. > > For the preremove script, I guess you should run it before unpacking the > archive. You can find it in the package build directory in > inst/etc/preremove. > > I'm quite lazy and don't bother doing this, but if the preremove or > postinstall scripts are doing something important, you should do it. > > Andrew > > > -- > Problem reports: http://cygwin.com/problems.html > FAQ: http://cygwin.com/faq/ > Documentation: http://cygwin.com/docs.html > Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple