This is the mail archive of the cygwin-apps mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 12/11/2014 2:50 PM, Christian Kellermann wrote:
* Corinna Vinschen <corinna-cygwin@cygwin.com> [141211 13:30]:If you don't use any of the automatisms and special features described in the cygport manual's postinstall section, I guess you either have to install the script in your install rule, or you have to install it manually from the src_install section (uhm... :}). A doexe command should do it, I think.How about this?
[cut]
src_install() { cd ${B} cyginstall cat > ${B}/chicken.sh <<HERE #!/bin/bash chicken-install -updatedb
eventually -update-db
HERE exeinto /etc/postinstall doexe chicken.sh cat > ${B}chicken.sh <<HERE #!/bin/bash rm $(chicken-install -repository)/modules.db HERE exeinto /etc/preremove doexe chicken.sh }
The cygport documentation is not explicit on this argument but the easy way is to put in CYGWIN-PATCHES two files postinstall.sh preremove.sh that will be placed during cyginstall as /etc/postinstall/chicken.sh /etc/preremove/chicken.sh Please test the attachments and let me know, so I will build for you the final x86_64 package For me is GTG Regards Marco
Attachment:
chicken.cygport
Description: Text document
Attachment:
chicken-prepost.patch
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |